summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-05 22:29:57 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-08 17:23:39 +0300
commita61b751f91db664a519b94857ea669d5465833a1 (patch)
tree201d7100898555ab2d946b998c80e6a7b361fc06
parent2fbfc780b7121c6f04f2d08282001e7e3639b7ba (diff)
downloadspm-a61b751f91db664a519b94857ea669d5465833a1.tar.gz
spm-a61b751f91db664a519b94857ea669d5465833a1.tar.bz2
spm-a61b751f91db664a519b94857ea669d5465833a1.tar.xz
spm-a61b751f91db664a519b94857ea669d5465833a1.zip
Add manaplus builds with asan.
-rw-r--r--.gitlab-ci.yml95
1 files changed, 93 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d0b3c4e..ea538b4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,8 +22,7 @@ variables:
when: always
expire_in: 3 months
-# disabled due kernel issue
-.SDL_default_asan:
+SDL_default_asan:
stage: build
script:
- ./.ci/install.sh git mercurial bash gcc g++ make autoconf automake autopoint gettext libtool pkg-config cmake
@@ -632,3 +631,95 @@ manaplus_default_old_test:
dependencies:
- SDL_default_old
<<: *job-artifacts
+
+manaplus_default_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 --with-sdl2
+ - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
+ variables:
+ LIBNAME: SDL
+ LIBVERSION: default
+ 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_default
+ <<: *job-artifacts
+
+manaplus_default_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 --with-sdl2
+ - /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: default
+ 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_default
+ <<: *job-artifacts
+
+manaplus_default_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 --with-sdl2
+ - /usr/local/spm/bin/${LIBNAME}_${LIBVERSION}/runenv.sh ${runenvx} ${runenvz} ./tools/ci/scripts/checkldd.sh src/manaplustests
+ variables:
+ LIBNAME: SDL
+ LIBVERSION: default_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_default_old
+ <<: *job-artifacts
+
+manaplus_default_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 --with-sdl2
+ - /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: default_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_default_old
+ <<: *job-artifacts