forked from CGM_Public/pretix_original
39 lines
937 B
YAML
39 lines
937 B
YAML
before_script:
|
|
tests:
|
|
stage: test
|
|
script:
|
|
- virtualenv env
|
|
- source env/bin/activate
|
|
- pip install -U pip wheel setuptools
|
|
- XDG_CACHE_HOME=/cache bash .travis.sh tests
|
|
tags:
|
|
- python3
|
|
except:
|
|
- pypi
|
|
pypi:
|
|
stage: release
|
|
script:
|
|
- cp /keys/.pypirc ~/.pypirc
|
|
- virtualenv env
|
|
- source env/bin/activate
|
|
- pip install -U pip wheel setuptools
|
|
- XDG_CACHE_HOME=/cache pip3 install -Ur src/requirements.txt -r src/requirements/dev.txt
|
|
- cd src
|
|
- python setup.py sdist
|
|
- pip install dist/pretix-*.tar.gz
|
|
- python -m pretix migrate
|
|
- python -m pretix check
|
|
- python setup.py sdist upload
|
|
- python setup.py bdist_wheel upload
|
|
tags:
|
|
- python3
|
|
only:
|
|
- pypi
|
|
artifacts:
|
|
paths:
|
|
- src/dist/
|
|
stages:
|
|
- test
|
|
- build
|
|
- release
|