forked from GNOME/jhbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (51 loc) · 1.22 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
stages:
- test
- deploy
test-py3:
image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v5
script:
# 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 .
# docs
- mkdir public
- cd public
- yelp-build html ../doc/C/index.docbook
artifacts:
paths:
- public
ub20.04-py3-glib:
image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v5
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: ["test-py3"]
script:
- echo
artifacts:
paths:
- public
only:
- master