CI: Fix unpack of documentation tarball
[platform/upstream/dbus.git] / .gitlab-ci.yml
1 # Copyright © 2015-2018 Collabora Ltd.
2 #
3 # Permission is hereby granted, free of charge, to any person
4 # obtaining a copy of this software and associated documentation files
5 # (the "Software"), to deal in the Software without restriction,
6 # including without limitation the rights to use, copy, modify, merge,
7 # publish, distribute, sublicense, and/or sell copies of the Software,
8 # and to permit persons to whom the Software is furnished to do so,
9 # subject to the following conditions:
10 #
11 # The above copyright notice and this permission notice shall be
12 # included in all copies or substantial portions of the Software.
13 #
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
18 # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 # SOFTWARE.
22
23 image: debian:stretch-slim
24
25 stages:
26   - build
27
28 before_script:
29   - ./tools/ci-install.sh
30   - mkdir -p .ccache
31   - export CCACHE_BASEDIR="$(pwd)"
32   - export CCACHE_DIR="$CCACHE_BASEDIR/.ccache"
33   # Debian's ccache package creates symlinks here for all supported
34   # compilers
35   - export PATH="/usr/lib/ccache:$PATH"
36
37 cache:
38   key: dbus-1.12-${CI_JOB_NAME}
39   paths:
40     - .ccache/
41
42 variables:
43   ci_in_docker: "yes"
44   ci_local_packages: "yes"
45   ci_parallel: "2"
46   ci_sudo: "yes"
47   ci_distro: "debian"
48   ci_suite: "stretch"
49
50 build:production:
51   stage: build
52   image: "debian:stretch-slim"
53   variables:
54     ci_variant: "production"
55   script: &script
56     - chown -R user .
57     - runuser -u user ./tools/ci-build.sh
58
59 build:debug:
60   stage: build
61   image: "debian:stretch-slim"
62   variables:
63     ci_variant: "debug"
64   script: *script
65
66 build:reduced:
67   stage: build
68   when: manual
69   image: "debian:stretch-slim"
70   variables:
71     ci_variant: "reduced"
72   script: *script
73
74 build:legacy:
75   stage: build
76   when: manual
77   image: "debian:stretch-slim"
78   variables:
79     ci_variant: "legacy"
80   script: *script
81
82 build:cmake:
83   stage: build
84   image: "debian:stretch-slim"
85   variables:
86     ci_buildsys: "cmake-dist"
87   script: *script
88
89 build:i686-w64-mingw32-debug:
90   stage: build
91   image: "debian:stretch-slim"
92   variables:
93     ci_host: "i686-w64-mingw32"
94     ci_variant: "debug"
95   script: *script
96
97 build:i686-w64-mingw32-cmake:
98   stage: build
99   when: manual
100   image: "debian:stretch-slim"
101   variables:
102     ci_buildsys: "cmake"
103     ci_host: "i686-w64-mingw32"
104   script: *script
105
106 build:x86_64-w64-mingw32:
107   stage: build
108   image: "debian:stretch-slim"
109   variables:
110     ci_host: "i686-w64-mingw32"
111   script: *script
112
113 build:x86_64-w64-mingw32-cmake-debug:
114   stage: build
115   when: manual
116   image: "debian:stretch-slim"
117   variables:
118     ci_buildsys: "cmake"
119     ci_host: "i686-w64-mingw32"
120     ci_variant: "debug"
121   script: *script
122
123 build:jessie:
124   when: manual
125   stage: build
126   image: "debian:jessie-slim"
127   variables:
128     ci_suite: "jessie"
129   script: *script
130
131 build:buster:
132   when: manual
133   stage: build
134   image: "debian:buster-slim"
135   variables:
136     ci_suite: "buster"
137   script: *script
138
139 build:xenial:
140   when: manual
141   stage: build
142   image: "ubuntu:xenial"
143   variables:
144     ci_distro: "ubuntu"
145     ci_suite: "xenial"
146   script: *script
147
148 # vim:set sw=2 sts=2 et: