blob: 6964a7f3a362145a4d438a4c3c2383be620a1226 (
plain) (
blame)
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
|
stages:
- build
- manaplus
before_script:
- uname -a
- cat /etc/os-release
- mkdir logs || true
image: debian:unstable
variables:
GET_SOURCES_ATTEMPTS: "5"
ARTIFACT_DOWNLOAD_ATTEMPTS: "5"
MANAPLUS_CLONE: "git clone --branch master --depth 1 https://gitlab.com/manaplus/manaplus.git cloned"
.job-artifacts: &job-artifacts
artifacts:
paths:
- logs
- cloned/logs
- bin
when: always
expire_in: 3 months
# disabled due kernel issue
.SDL_SDL-1.2_asan:
stage: build
script:
- ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
- ./.ci/copyspm.sh
- export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.4
- ./.ci/buildlib.sh SDL SDL-1.2 _asan
- ${runenvtool} ./.ci/buildlib.sh zlib master
- ${runenvtool} ./.ci/buildlib.sh SDL_gfx master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
- ${runenvtool} ./.ci/buildlib.sh SDL_image SDL-1.2
- ${runenvtool} ./.ci/buildlib.sh SDL_mixer SDL-1.2
- ${runenvtool} ./.ci/buildlib.sh SDL_net SDL-1.2
- ${runenvtool} ./.ci/buildlib.sh SDL_ttf SDL-1.2
- export LD_PRELOAD
- ./.ci/copyfinal.sh
- grep "1.2" /usr/local/spm/bin/${installname}/lib/pkgconfig/sdl.pc
variables:
installname: SDL_SDL-1.2_asan
runenvtool: /usr/local/spm/env/run${installname}.sh
runenvtoolz: /usr/local/spm/env/runzlib_master.sh
ASAN_OPTIONS: "detect_leaks=0"
CXXFLAGS: "-fsanitize=address -fsanitize=undefined
-fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
-fsanitize=vla-bound -fsanitize=null -fsanitize=return
-fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
-fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
-fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
-fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
-fno-omit-frame-pointer"
CFLAGS: "-fsanitize=address -fsanitize=undefined
-fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
-fsanitize=vla-bound -fsanitize=null -fsanitize=return
-fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
-fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
-fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
-fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
-fno-omit-frame-pointer"
LDFLAGS: "-lasan -lubsan
-fsanitize=address -fsanitize=undefined
-fsanitize=shift -fsanitize=integer-divide-by-zero -fsanitize=unreachable
-fsanitize=vla-bound -fsanitize=null -fsanitize=return
-fsanitize=signed-integer-overflow -fsanitize=bounds -fsanitize=alignment
-fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow
-fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool
-fsanitize=enum -fsanitize=vptr -fsanitize=bounds-strict
-fno-omit-frame-pointer"
<<: *job-artifacts
SDL_SDL-1.2:
stage: build
script:
- ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libicu-dev
- ./.ci/copyspm.sh
- ./.ci/buildlib.sh SDL SDL-1.2
- ${runenvtool} ./.ci/buildlib.sh zlib master
- ${runenvtool} ./.ci/buildlib.sh SDL_gfx master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype VER-2-8-1
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 4.0.1
- ${runenvtool} ./.ci/buildlib.sh SDL_image SDL-1.2
- ${runenvtool} ./.ci/buildlib.sh SDL_mixer SDL-1.2
- ${runenvtool} ./.ci/buildlib.sh SDL_net SDL-1.2
- ${runenvtool} ./.ci/buildlib.sh SDL_ttf SDL-1.2
- ./.ci/copyfinal.sh
- grep "1.2" /usr/local/spm/bin/SDL_SDL-1.2/lib/pkgconfig/sdl.pc
variables:
installname: SDL_SDL-1.2
runenvtool: /usr/local/spm/env/run${installname}.sh
runenvtoolz: /usr/local/spm/env/runzlib_master.sh
<<: *job-artifacts
SDL_SDL-1.2_old:
stage: build
script:
- ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libicu-dev
libjpeg-dev libtiff-dev
bison flex
- ./.ci/copyspm.sh
- ./.ci/buildlib.sh SDL release-1.2.15
- cp /usr/local/spm/env/runSDL_release-1.2.15.sh /usr/local/spm/env/runSDL_SDL-1.2_old.sh
- ${runenvtool} ./.ci/buildlib.sh zlib v1.2.5
- ${runenvtool} ./.ci/buildlib.sh SDL_gfx master
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libpng libpng10
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh freetype VER-2-4-9
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh libxml2 v2.9.1
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh curl curl-7_12_3
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh tinyxml2 2.0.2
- ${runenvtool} ${runenvtoolz} ./.ci/buildlib.sh SDL_image release-1.2.5
- ${runenvtool} ./.ci/buildlib.sh SDL_mixer release-1.2.7
- ${runenvtool} ./.ci/buildlib.sh SDL_net release-1.2.6
- ${runenvtool} ./.ci/buildlib.sh SDL_ttf release-2.0.11
- ./.ci/copyfinal.sh
variables:
installname: SDL_SDL-1.2_old
runenvtool: /usr/local/spm/env/run${installname}.sh
runenvtoolz: /usr/local/spm/env/runzlib_v1.2.5.sh
<<: *job-artifacts
manaplus_SDL-1.2:
stage: manaplus
script:
- ./.ci/install.sh gcc-7 g++-7
make autoconf automake autopoint gettext pkg-config
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev
git wget unzip gdb valgrind netcat-openbsd procps
- ./.ci/clonesrc.sh
- cd cloned
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
variables:
LIBNAME: SDL
LIBVERSION: SDL-1.2
runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
POST_CXXFLAGS: "-Wno-undef"
dependencies:
- SDL_SDL-1.2
<<: *job-artifacts
manaplus_SDL-1.2_test:
stage: manaplus
script:
- ./.ci/install.sh gcc-7 g++-7
make autoconf automake autopoint gettext pkg-config
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev
valgrind
git wget unzip gdb valgrind netcat-openbsd procps
- ./.ci/clonesrc.sh
- cd cloned
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_tests.sh --without-manaplusgame --without-dyecmd
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
variables:
LIBNAME: SDL
LIBVERSION: SDL-1.2
runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
POST_CXXFLAGS: "-Wno-undef"
dependencies:
- SDL_SDL-1.2
<<: *job-artifacts
manaplus_SDL-1.2_old:
stage: manaplus
script:
- ./.ci/install.sh gcc-7 g++-7
make autoconf automake autopoint gettext pkg-config
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev
libjpeg-dev libtiff-dev
git wget unzip gdb valgrind netcat-openbsd procps
- ./.ci/clonesrc.sh
- cd cloned
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7.sh
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
variables:
LIBNAME: SDL
LIBVERSION: SDL-1.2_old
runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
POST_CXXFLAGS: "-Wno-undef"
dependencies:
- SDL_SDL-1.2_old
<<: *job-artifacts
manaplus_SDL-1.2_old_test:
stage: manaplus
script:
- ./.ci/install.sh gcc-7 g++-7
make autoconf automake autopoint gettext pkg-config
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev
valgrind
libjpeg-dev libtiff-dev
git wget unzip gdb valgrind netcat-openbsd procps
- ./.ci/clonesrc.sh
- cd cloned
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_tests.sh --without-manaplusgame --without-dyecmd
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
variables:
LIBNAME: SDL
LIBVERSION: SDL-1.2_old
runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
POST_CXXFLAGS: "-Wno-undef"
dependencies:
- SDL_SDL-1.2_old
<<: *job-artifacts
manaplus_SDL-1.2_asan_tests:
stage: manaplus
script:
- ./.ci/install.sh gcc-7 g++-7
make autoconf automake autopoint gettext pkg-config
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev
git wget unzip gdb valgrind netcat-openbsd procps
- ./.ci/clonesrc.sh
- cd cloned
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_sanitize_tests.sh --enable-unittests=yes --without-manaplusgame --without-dyecmd
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
variables:
LIBNAME: SDL
LIBVERSION: SDL-1.2
runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
POST_CXXFLAGS: "-Wno-undef"
ASAN_OPTIONS: "detect_leaks=0"
JOBS: 1
dependencies:
- SDL_SDL-1.2
<<: *job-artifacts
manaplus_SDL-1.2_asan:
stage: manaplus
script:
- ./.ci/install.sh gcc-7 g++-7
make autoconf automake autopoint gettext pkg-config
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev
git wget unzip gdb valgrind netcat-openbsd procps
- ./.ci/clonesrc.sh
- cd cloned
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_sanitize.sh --without-dyecmd
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
variables:
LIBNAME: SDL
LIBVERSION: SDL-1.2
runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_master.sh
runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_master.sh
POST_CXXFLAGS: "-Wno-undef"
dependencies:
- SDL_SDL-1.2
<<: *job-artifacts
manaplus_SDL-1.2_old_asan_test:
stage: manaplus
script:
- ./.ci/install.sh gcc-7 g++-7
make autoconf automake autopoint gettext pkg-config
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev
libjpeg-dev libtiff-dev
git wget unzip gdb valgrind netcat-openbsd procps
- ./.ci/clonesrc.sh
- cd cloned
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_sanitize_tests.sh --enable-unittests=yes --without-manaplusgame --without-dyecmd
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
variables:
LIBNAME: SDL
LIBVERSION: SDL-1.2_old
runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
POST_CXXFLAGS: "-Wno-undef"
ASAN_OPTIONS: "detect_leaks=0"
JOBS: 1
dependencies:
- SDL_SDL-1.2_old
<<: *job-artifacts
manaplus_SDL-1.2_old_asan:
stage: manaplus
script:
- ./.ci/install.sh gcc-7 g++-7
make autoconf automake autopoint gettext pkg-config
libx11-dev libxext-dev libxt-dev libxv-dev x11proto-core-dev libgl1-mesa-dev libasound2-dev libglu1-mesa-dev libicu-dev
libjpeg-dev libtiff-dev
git wget unzip gdb valgrind netcat-openbsd procps
- ./.ci/clonesrc.sh
- cd cloned
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/jobs/gcc7_sanitize.sh --without-dyecmd
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplus
- /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/runtests.sh
variables:
LIBNAME: SDL
LIBVERSION: SDL-1.2_old
runenvz: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runzlib_v1.2.5.sh
runenvx: /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runlibxml2_v2.9.1.sh
POST_CXXFLAGS: "-Wno-undef"
dependencies:
- SDL_SDL-1.2_old
<<: *job-artifacts
|