-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
67 lines (59 loc) · 1.39 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
image: debian
before_script:
- apt update -qq
- apt install -y -qq python3-pip python3-dev python3-pyqt6 python3-pyqt6.qtsvg python3-matplotlib python3-numpy python3-pytest
stages:
- test
- release
- deploy
test_debian_testing:
image: debian:testing
variables:
QT_QPA_PLATFORM: "offscreen"
script:
- mkdir -p /tmp/runtime-pyspreadci
- export XDG_RUNTIME_DIR=/tmp/runtime-pyspreadci
- py.test-3
only:
- master
- development
test_debian_experimental:
image: debian:experimental
variables:
QT_QPA_PLATFORM: "offscreen"
script:
- mkdir -p /tmp/runtime-pyspreadci
- export XDG_RUNTIME_DIR=/tmp/runtime-pyspreadci
- py.test-3
only:
- master
- development
## Release to pypi
deploy_pypi:
stage: release
variables:
TWINE_USERNAME: $TWINE_USERNAME
TWINE_PASSWORD: $TWINE_PASSWORD
script:
- echo "$TWINE_USERNAME"
- apt install -y -qq twine
- python3 setup.py sdist bdist_wheel
- python3 -m twine upload --skip-existing dist/*
only:
- tags
## api.docs pages at pyspread.gitlab.io/pyspread
pages:
stage: deploy
image: debian:testing
script:
- apt install -y -qq python3-sphinx locales
- pip3 install --break-system-packages -r apidocs/requirements.txt
- mkdir public
- export LC_ALL=C
- dpkg-reconfigure locales
- sphinx-build -a -b html ./apidocs ./public/
artifacts:
paths:
- public
only:
- master