-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
48 lines (43 loc) · 1.12 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
stages:
- test
- deploy
.test:
script:
- "apk add --update alpine-sdk git xvfb python3-tkinter build-base zlib-dev jpeg-dev"
- "exec Xvfb :8 -screen 0 640x480x24 2>/tmp/Xvfb.log &"
- "python -m venv /opt/venv"
- "source /opt/venv/bin/activate; pip install --upgrade pip"
- 'source /opt/venv/bin/activate; DISPLAY=:8 pip install -e ".[more_widgets,styles]"'
- "source /opt/venv/bin/activate; DISPLAY=:8 python -m layoutx.install_tkdnd"
- "source /opt/venv/bin/activate; DISPLAY=:8 python setup.py test"
test-3.7:
extends: ".test"
stage: "test"
image: "python:3.7-alpine"
test-3.8:
extends: ".test"
stage: "test"
image: "python:3.8-alpine"
pages:
image: python:3.8-alpine
script:
- "apk add --update alpine-sdk"
- pip install -r requirements-docs.txt
- mkdocs build
artifacts:
paths:
- public
stage: deploy
only:
- master
pypi:
image: python:3
stage: deploy
cache: {}
script:
- pip install -U twine
- python setup.py check sdist # This will fail if your creds are bad.
- python setup.py sdist
- twine upload dist/*
only:
- tags