-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (44 loc) · 1.37 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
test:
script:
- cp /keys/.pypirc ~/.pypirc
- virtualenv /tmp/env
- source /tmp/env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools pytest pytest-django coverage
- XDG_CACHE_HOME=/cache pip3 install -U "git+https://github.com/pretix/pretix.git@master#egg=pretix"
- python setup.py develop
- make
- coverage run -m pytest tests
- coverage report
tags:
- python3
style:
script:
- cp /keys/.pypirc ~/.pypirc
- virtualenv /tmp/env
- source /tmp/env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools isort black flake8 check-manifest
- XDG_CACHE_HOME=/cache pip3 install -U "git+https://github.com/pretix/pretix.git@master#egg=pretix"
- python setup.py develop
- black --check .
- isort -c .
- flake8 .
- check-manifest .
tags:
- python3
pypi:
script:
- cp /keys/.pypirc ~/.pypirc
- virtualenv /tmp/env
- source /tmp/env/bin/activate
- XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools twine check-manifest build
- python -m build
- check-manifest .
- twine check dist/*
- twine upload dist/*
tags:
- python3
only:
- pypi
artifacts:
paths:
- dist/