24 lines
577 B
YAML
24 lines
577 B
YAML
test:
|
|
image: python:3.6
|
|
script:
|
|
- apt-get update -qy
|
|
- apt-get install -y python-dev python-pip
|
|
- 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 |