From c24ee900d6179bfddc92ce7a99cabc2fe36f9825 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nicolas.pope@utu.fi> Date: Sat, 7 May 2022 09:42:32 +0100 Subject: [PATCH] Add valgrind to pipeline --- .gitlab-ci.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2b4ab7..882d1b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,11 +7,12 @@ # See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence stages: + - static - build - test flawfinder-sast: - stage: test + stage: static needs: [] dependencies: [] @@ -21,7 +22,7 @@ include: image: ubuntu:jammy code_quality: - stage: test + stage: static allow_failure: true needs: [] dependencies: [] @@ -84,6 +85,26 @@ linux:test: reports: junit: build/report.xml +linux:valgrind: + only: + - main + - merge_requests + + stage: test + tags: + - docker + + needs: ["linux:build"] + script: + - DEBIAN_FRONTEND=noninteractive apt update && apt install -y libmsgpackc2 liburiparser1 valgrind + - cd build + - valgrind --error-exitcode=1 ./test/net_integration + + artifacts: + when: always + reports: + junit: build/report.xml + ### Windows #windows:build: -- GitLab