New ci flow

This commit is contained in:
Eddy Hintze
2020-01-19 10:00:40 -05:00
parent e4ace4528c
commit 4c85441f39
3 changed files with 10 additions and 8 deletions

View File

@@ -3,18 +3,20 @@ image: python:3
stages:
- test
- release
- tag
- package
flake8:
stage: test
except:
- tags
script:
- pip install tox
- tox -e flake8
release-package:
stage: release
pypi-package:
stage: package
only:
- master
- tags
script:
- pip install twine
- rm -f dist/*
@@ -28,7 +30,7 @@ release-package:
git remote set-url origin "https://gitlab-ci-token:${CI_TAG_UPLOAD_TOKEN}@${url_host}"
tag:
stage: tag
stage: release
only:
- master
script: