Add GitLab CI config

This commit is contained in:
Raphael Michel 2018-03-03 21:27:49 +01:00
parent c0686ba453
commit 23de62fbc2
1 changed files with 18 additions and 0 deletions

18
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,18 @@
pypi:
script:
- cp /keys/.pypirc ~/.pypirc
- virtualenv env
- source env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools
- XDG_CACHE_HOME=/cache pip3 install -U pretix
- python setup.py sdist develop
- python setup.py sdist clean
- python setup.py sdist upload
- python setup.py bdist_wheel upload
tags:
- python3
only:
- pypi
artifacts:
paths:
- dist/