2018-04-11 16:04:14 +00:00
|
|
|
workspace:
|
|
|
|
base: /app
|
|
|
|
path: .
|
|
|
|
|
|
|
|
pipeline:
|
2018-04-12 01:16:26 +00:00
|
|
|
test:
|
2018-04-11 16:04:14 +00:00
|
|
|
image: python:3
|
|
|
|
commands:
|
2018-04-12 01:16:26 +00:00
|
|
|
- python3 -m venv env
|
|
|
|
- ./env/bin/pip install tox
|
2018-04-11 16:04:14 +00:00
|
|
|
- make test
|
2018-04-12 01:16:26 +00:00
|
|
|
push_to_pypi:
|
|
|
|
image: python:3
|
|
|
|
commands:
|
|
|
|
- ./env/bin/pip install twine
|
|
|
|
- make upload-test
|
|
|
|
secrets:
|
|
|
|
- source: PYPI_USERNAME
|
|
|
|
target: TWINE_USERNAME
|
|
|
|
- source: PYPI_PASSWORD
|
|
|
|
target: TWINE_PASSWORD
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
branch: master
|