Updated ci build configs
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9d232ca4b1
commit
084129c827
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -1 +1 @@
|
|||
__version__=0.80
|
||||
__version__=0.81
|
||||
|
|
Loading…
Reference in New Issue