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
|
- name: tests
|
||||||
image: python:3.6
|
image: python:3.6
|
||||||
commands:
|
commands:
|
||||||
|
- env
|
||||||
- python setup.py test
|
- python setup.py test
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
|
@ -15,6 +16,10 @@ steps:
|
||||||
from_secret: PYPI_PASSWORD
|
from_secret: PYPI_PASSWORD
|
||||||
PYPI_REPOSITORY:
|
PYPI_REPOSITORY:
|
||||||
from_secret: PYPI_REPOSITORY
|
from_secret: PYPI_REPOSITORY
|
||||||
|
commands:
|
||||||
|
- env
|
||||||
|
- echo "__version__=${DRONE_TAG}"
|
||||||
|
- echo "__version__=${DRONE_TAG}" > eorg/version.py
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
|
@ -6,19 +6,3 @@ test:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install pytest-cov
|
- pip install pytest-cov
|
||||||
- python setup.py pytest
|
- 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