-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
204 lines (178 loc) · 5.2 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# CI setup based on https://gitlab.gnome.org/GNOME/librsvg/blob/master/.gitlab-ci.yml
variables:
AMD64_DEBIAN_TESTING: debian:testing
AMD64_UBUNTU_BIONIC: ubuntu:bionic
AMD64_FEDORA_LATEST: "registry.fedoraproject.org/fedora:35"
AMD64_FEDORA_RAWHIDE: "registry.fedoraproject.org/fedora:rawhide"
AMD64_OPENSUSE_LEAP: opensuse/leap
AMD64_OPENSUSE_TUMBLEWEED: opensuse/tumbleweed
I386_UBUNTU_BIONIC: "i386/ubuntu:bionic"
GIT_SUBMODULE_STRATEGY: recursive
stages:
- test
.meson_test:
stage: test
script:
- meson builddir
- ninja -C builddir
- meson test -C builddir --print-errorlogs
after_script:
- cp builddir/meson-logs/meson-log.txt .
- rm -rf builddir
artifacts:
paths:
- "meson-log.txt"
.cmake_test_debug:
stage: test
script:
- mkdir builddir && cd builddir
- cmake .. -DCMAKE_BUILD_TYPE="Debug" -D ENABLE_SHARED_LIB=ON -D ENABLE_STATIC_LIB=OFF
- cmake --build .
- make check
after_script:
- cp builddir/CMakeFiles/CMakeOutput.log .
- rm -rf builddir
artifacts:
paths:
- "CMakeOutput.log"
.cmake_test:
stage: test
script:
- mkdir builddir && cd builddir
- cmake .. -DCMAKE_BUILD_TYPE="Release" -D ENABLE_SHARED_LIB=ON -D ENABLE_STATIC_LIB=OFF
- cmake --build .
- make check
after_script:
- cp builddir/CMakeFiles/CMakeOutput.log .
- rm -rf builddir
artifacts:
paths:
- "CMakeOutput.log"
.cmake_test_shared_static:
stage: test
script:
- mkdir builddir && cd builddir
- cmake .. -DCMAKE_BUILD_TYPE="Release" -D ENABLE_SHARED_LIB=ON -D ENABLE_STATIC_LIB=ON
- cmake --build .
- make check
after_script:
- cp builddir/CMakeFiles/CMakeOutput.log .
- rm -rf builddir
artifacts:
paths:
- "CMakeOutput.log"
.cmake_test_static_only:
stage: test
script:
- mkdir builddir && cd builddir
- cmake .. -DCMAKE_BUILD_TYPE="Release" -D ENABLE_SHARED_LIB=OFF -D ENABLE_STATIC_LIB=ON
- cmake --build .
- make check
after_script:
- cp builddir/CMakeFiles/CMakeOutput.log .
- rm -rf builddir
artifacts:
paths:
- "CMakeOutput.log"
debian:testing:meson:
extends: ".meson_test"
image: $AMD64_DEBIAN_TESTING
before_script:
- apt-get update -y
- apt-get install -y gcc meson python3-distutils python3-pytest valgrind
debian:testing:cmake:debug:
extends: ".cmake_test_debug"
image: $AMD64_DEBIAN_TESTING
before_script:
- apt-get update -y
- apt-get install -y gcc make python3-pytest cmake valgrind
debian:testing:cmake:
extends: ".cmake_test"
image: $AMD64_DEBIAN_TESTING
before_script:
- apt-get update -y
- apt-get install -y gcc make python3-pytest cmake valgrind
debian:testing:cmake:shared_static:
extends: ".cmake_test_shared_static"
image: $AMD64_DEBIAN_TESTING
before_script:
- apt-get update -y
- apt-get install -y gcc make python3-pytest cmake valgrind
debian:testing:cmake:static_only:
extends: ".cmake_test_static_only"
image: $AMD64_DEBIAN_TESTING
before_script:
- apt-get update -y
- apt-get install -y gcc make python3-pytest cmake valgrind
ubuntu:bionic:meson:
extends: ".meson_test"
image: $AMD64_UBUNTU_BIONIC
before_script:
- apt-get update -y
- apt-get install -y gcc python3-pip ninja-build valgrind
- pip3 install meson pytest
ubuntu:bionic:cmake:
extends: ".cmake_test"
image: $AMD64_UBUNTU_BIONIC
before_script:
- apt-get update -y
- apt-get install -y gcc make python3-pip valgrind
- pip3 install --upgrade pip
- pip3 install pytest cmake
ubuntu:bionic:i386:meson:
extends: ".meson_test"
image: $I386_UBUNTU_BIONIC
before_script:
- apt-get update -y
- apt-get install -y gcc python3-pip ninja-build valgrind
- pip3 install meson pytest
ubuntu:bionic:i386:cmake:
extends: ".cmake_test"
image: $I386_UBUNTU_BIONIC
before_script:
- apt-get update -y
- apt-get install -y gcc make python3-pip valgrind
- pip3 install --upgrade pip
- pip3 install pytest cmake
fedora:30:meson:
extends: ".meson_test"
image: $AMD64_FEDORA_LATEST
before_script:
- dnf install -y gcc meson python3-pytest valgrind
fedora:30:cmake:
extends: ".cmake_test"
image: $AMD64_FEDORA_LATEST
before_script:
- dnf install -y gcc cmake python3-pytest valgrind
fedora:rawhide:meson:
extends: ".meson_test"
image: $AMD64_FEDORA_RAWHIDE
before_script:
- dnf install -y gcc meson python3-pytest valgrind
fedora:rawhide:cmake:
extends: ".cmake_test"
image: $AMD64_FEDORA_RAWHIDE
before_script:
- dnf install -y gcc cmake python3-pytest valgrind
opensuse/leap:meson:
extends: ".meson_test"
image: $AMD64_OPENSUSE_LEAP
before_script:
- zypper install -y gcc ninja python3-pip valgrind
- pip3 install meson pytest
opensuse/leap:cmake:
extends: ".cmake_test"
image: $AMD64_OPENSUSE_LEAP
before_script:
- zypper install -y gcc cmake python3-pip valgrind
- pip3 install pytest
opensuse/tumbleweed:meson:
extends: ".meson_test"
image: $AMD64_OPENSUSE_TUMBLEWEED
before_script:
- zypper install -y gcc meson python3-pytest valgrind
opensuse/tumbleweed:cmake:
extends: ".cmake_test"
image: $AMD64_OPENSUSE_TUMBLEWEED
before_script:
- zypper install -y gcc cmake python3-pytest valgrind