allianceauth/.gitlab-ci.yml
2020-02-18 19:34:44 +01:00

62 lines
869 B
YAML

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