Updated ci build configs
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Oliver Marks 2018-11-30 07:28:19 +00:00
parent 9d232ca4b1
commit 084129c827
3 changed files with 6 additions and 17 deletions

View File

@ -4,6 +4,7 @@ steps:
- name: tests
image: python:3.6
commands:
- env
- python setup.py test
- name: deploy
@ -15,6 +16,10 @@ steps:
from_secret: PYPI_PASSWORD
PYPI_REPOSITORY:
from_secret: PYPI_REPOSITORY
commands:
- env
- echo "__version__=${DRONE_TAG}"
- echo "__version__=${DRONE_TAG}" > eorg/version.py
when:
event:
- tag

View File

@ -6,19 +6,3 @@ test:
- pip install -r requirements.txt
- pip install pytest-cov
- python setup.py pytest
staging:
image: python:3.6-alpine
stage: deploy
before_script:
- pip install -U setuptools wheel "twine<1.12"
- python setup.py sdist
variables:
TWINE_USERNAME: $PYPI_USERNAME
TWINE_PASSWORD: $PYPI_PASSWORD
script:
- twine upload --repository-url $PYPI_REPOSITORY dist/*
except:
- tags
only:
- master

View File

@ -1 +1 @@
__version__=0.80
__version__=0.81