-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
56 lines (49 loc) · 917 Bytes
/
.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
stages:
- testing
- deploy
- pages
.python_base: &python_base
tags:
- docker
image: python:3.8
before_script:
- git config --global credential.helper store
- echo "https://gitlab-ci-token:${CI_JOB_TOKEN}@mad-srv.informatik.uni-erlangen.de" > ~/.git-credentials
- pip install pip --upgrade
- pip install poetry
- poetry install
test:
stage: testing
<<: *python_base
script:
- poetry run poe test
lint:
stage: testing
<<: *python_base
script:
- poetry run poe check
docs:
stage: deploy
<<: *python_base
script:
- poetry run poe docs
- cp -r docs/_build/html ./html_docs
artifacts:
paths:
- html_docs
expire_in: 2 month
pages:
stage: pages
dependencies:
- docs
tags:
- docker
script:
- mkdir .public
- cp -r html_docs/* .public
- mv .public public
artifacts:
paths:
- public
only:
- master