-
Notifications
You must be signed in to change notification settings - Fork 54
/
.gitlab-ci.yml
79 lines (75 loc) · 2.06 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
stages:
- test
- deploy
documentation:
image: docker.io/sphinxdoc/sphinx
script:
- python3 -m pip install sphinx_rtd_theme sphinx-lint
- sphinx-build --keep-going -W ./doc ./html ./doc/*.rst
- sphinx-lint ./doc/*.rst
- |
for dir in ./doc/po/*/; do
lang="$(basename "$dir")"
sphinx-build -Dlanguage="$lang" --keep-going ./doc ./html/"$lang" ./doc/*.rst
sphinx-lint $dir/LC_MESSAGES/docs.po || true
done
artifacts:
paths:
- html
test-py3:
image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v6
coverage: /TOTAL\s+\d+\s+\d+\s+(\d+)%/
script:
# verify modulesets
- xmllint --noout modulesets/*.{xml,xsl,modules}
# autotools install
- mkdir _build && cd _build
- ../autogen.sh --with-python=python3
- make
- make install
- make distcheck
- cd ..
# simple install
- ./autogen.sh --simple-install --with-python=python3
- make install
- $HOME/.local/bin/jhbuild help
# flake 8
- python3 -m flake8 .
# Code coverage
- python3 -m pytest --junit-xml=junit.xml --cov-report=xml --cov-report=term --cov=jhbuild tests --verbose || true
artifacts:
reports:
junit: junit.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml
ub20.04-py3-glib:
image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v6
before_script:
# Update for root cert updates
- sudo apt-get update
- sudo apt-get upgrade -y
script:
- ./autogen.sh --with-python=python3
- make
- make install
- export PATH=$HOME/.local/bin:$PATH
- mkdir -p $HOME/.config
- echo "use_local_modulesets = True" >> $HOME/.config/jhbuildrc
- sudo apt-file update
- jhbuild help
- jhbuild --no-interact --exit-on-error sysdeps --install --assume-yes glib
- sudo apt install -y docbook-xml docbook-xsl
- jhbuild --no-interact --exit-on-error build glib
pages:
image: alpine:latest
stage: deploy
needs: ["documentation"]
script:
- echo
artifacts:
paths:
- html
publish: html
only:
- master