allianceauth/.gitlab-ci.yml
2020-01-15 23:16:02 -05:00

37 lines
470 B
YAML

stages:
- "test"
- deploy
before_script:
- python -V
- pip install wheel tox
test-3.5:
image: python:3.5-stretch
script:
- tox -e py35
test-3.6:
image: python:3.6-stretch
script:
- tox -e py36
test-3.7:
image: python:3.7-stretch
script:
- tox -e py37
deploy_production:
stage: deploy
image: python:3.6-stretch
before_script:
- pip install twine
script:
- python setup.py sdist
- twine upload dist/*
only:
- tags