summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-08 21:56:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-08 22:42:52 +0300
commit308ce845d53c6544f9577982eef26cd252ec2f79 (patch)
treed54cb6aa3ff0cb005190a99d5b8d8a87e0473cfe /.gitlab-ci.yml
parentf953faf6c1b26a19c2954d02b84533426220f19a (diff)
downloadmanaverse-308ce845d53c6544f9577982eef26cd252ec2f79.tar.gz
manaverse-308ce845d53c6544f9577982eef26cd252ec2f79.tar.bz2
manaverse-308ce845d53c6544f9577982eef26cd252ec2f79.tar.xz
manaverse-308ce845d53c6544f9577982eef26cd252ec2f79.zip
Add valgrind jobs if build failed in .gitlab-ci.yml
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 88fd775c8..eef585d48 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
stages:
- prebuild
- build
+ - failbuild
- stats
before_script:
@@ -4264,6 +4265,44 @@ gitstats:
only:
- master
+# failed build checks
+gcc-6_tests_valgrind:
+ stage: failbuild
+ script:
+ - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame || true
+ - echo test valgrind
+ - valgrind -q --read-var-info=yes --track-origins=yes --malloc-fill=11 --free-fill=55 --show-reachable=yes --leak-check=full --leak-resolution=high --partial-loads-ok=yes --error-limit=no ./src/manaplustests 2>logs/valg.log
+ - grep "invalid" logs/valg.log && exit 1 || true
+ <<: *job-shared
+ when: on_failure
+ variables:
+ PACKAGES: gcc-6 g++-6
+ make autoconf automake autopoint gettext
+ libxml2-dev libcurl4-gnutls-dev libpng-dev
+ libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
+ valgrind
+ tags:
+ - docker
+
+gcc-6_tests_valgrind_i386:
+ stage: failbuild
+ script:
+ - ./tools/ci/jobs/gcc6_tests.sh --without-dyecmd --without-manaplusgame || true
+ - echo test valgrind
+ - valgrind -q --read-var-info=yes --track-origins=yes --malloc-fill=11 --free-fill=55 --show-reachable=yes --leak-check=full --leak-resolution=high --partial-loads-ok=yes --error-limit=no ./src/manaplustests 2>logs/valg.log
+ - grep "invalid" logs/valg.log && exit 1 || true
+ image: vicamo/debian:sid-i386
+ <<: *job-shared
+ when: on_failure
+ variables:
+ PACKAGES: gcc-6 g++-6
+ make autoconf automake autopoint gettext
+ libxml2-dev libcurl4-gnutls-dev libpng-dev
+ libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev
+ valgrind
+ tags:
+ - docker
+
# stats
pages: