-
Notifications
You must be signed in to change notification settings - Fork 13
/
.gitlab-ci.yml
92 lines (84 loc) · 1.73 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
.template: &template
except:
- deploy@ftp-team/dak
test bullseye:
<<: *template
image: debian:bullseye
parallel: 3
script: debian/run-ci --with-coverage
artifacts:
paths:
- output
test bookworm:
<<: *template
image: debian:bookworm
parallel: 3
script: debian/run-ci --with-coverage
artifacts:
paths:
- output
allow_failure: true
flake8:
<<: *template
image: debian:bullseye
script:
- apt-get update
- apt-get install -y flake8
- flake8
get coverage:
<<: *template
image: debian:bullseye
stage: coverage
dependencies:
- test bullseye
script:
- debian/run-coverage
artifacts:
paths:
- coverage
- logs
sphinx:
image: debian:bookworm
script:
- apt-get update
- apt-get install -y build-essential python3-sphinx
- apt-get build-dep -y .
- make -C docs html
artifacts:
paths:
- docs/_build/html
except:
- deploy@ftp-team/dak
contributors:
image: debian:bullseye
stage: deploy
dependencies: []
script:
- apt update && apt install -y git python3-debiancontributors
- dc-tool --mine config/debian/contributor.patch --auth-token "@$DC_TOKEN" --source ftp.debian.org --post
allow_failure: true
only:
- master@ftp-team/dak
pages:
image: debian:buster
script:
- apt-get update
- apt-get install -y python-epydoc
- mkdir -p public/epydoc
- epydoc -q --html --graph all --css white -n DAK -o public/epydoc --include-log --show-imports dak daklib dakweb
- mv coverage public/coverage
- mv docs/_build/html public/docs
stage: deploy
dependencies:
- get coverage
- sphinx
artifacts:
paths:
- public
only:
- master
stages:
- test
- coverage
- deploy