From: Tomas Krizek Date: Tue, 11 Dec 2018 16:48:57 +0000 (+0100) Subject: ci/gitlab-ci.yaml: use ASAN build for pytests X-Git-Tag: v3.2.0~8^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f770e60165f9426452d0ba11884b4640d6ff9158;p=thirdparty%2Fknot-resolver.git ci/gitlab-ci.yaml: use ASAN build for pytests --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1e8404c17..c95bfbab7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,16 +19,18 @@ stages: - extended - deploy -build:linux:amd64: +.build: &build + variables: + CFLAGS: -Werror -ggdb stage: build except: - master script: - rm daemon/lua/kres-gen.lua - - make -k all CFLAGS="-Werror -ggdb" + - make -k all - STATUS="$(git status --untracked-files=normal --porcelain)" - test -n "${STATUS}" && echo "${STATUS}" && echo "Build + install made working tree dirty, did you forget to update something?" && exit 2 - - make install CFLAGS="-Werror -ggdb" + - make install artifacts: untracked: true tags: @@ -36,21 +38,22 @@ build:linux:amd64: - linux - amd64 +build:linux:amd64: + <<: *build + build:clang:linux:amd64: - stage: build - except: - - master + <<: *build + variables: + CFLAGS: -Werror -Wno-error=unused-command-line-argument -ggdb + CXX: clang++ + CC: clang image: $CI_REGISTRY/knot/knot-resolver/ci/debian-unstable:knot-2.7 # newer Debian for newer Clang - script: - - rm daemon/lua/kres-gen.lua - - CXX=clang++ CC=clang make -k all "CFLAGS=-Werror -Wno-error=unused-command-line-argument -ggdb" - - STATUS="$(git status --untracked-files=normal --porcelain)" - - test -n "${STATUS}" && echo "${STATUS}" && echo "Build + install made working tree dirty, did you forget to update something?" && exit 2 - - CXX=clang++ CC=clang make install "CFLAGS=-Werror -ggdb" - tags: - - docker - - linux - - amd64 + artifacts: + +build:asan:linux:amd64: + <<: *build + variables: + CFLAGS: -Werror -ggdb3 -O0 -fsanitize=address -fno-omit-frame-pointer srpm: stage: build @@ -283,7 +286,7 @@ pytests:lint: pytests:run: stage: test dependencies: - - build:linux:amd64 + - build:asan:linux:amd64 except: - master script: @@ -307,7 +310,7 @@ pytests:run: pytests:extended: stage: extended dependencies: - - build:linux:amd64 + - build:asan:linux:amd64 except: - master script: