From 308ce845d53c6544f9577982eef26cd252ec2f79 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Mar 2017 21:56:30 +0300 Subject: Add valgrind jobs if build failed in .gitlab-ci.yml --- .gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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: -- cgit v1.2.3-70-g09d2