From 8826b3a45f23f4c25b1164c776207232af40b573 Mon Sep 17 00:00:00 2001 From: mkirsz <s1351949@sms.ed.ac.uk> Date: Fri, 8 Mar 2024 00:49:23 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ce36d1..ff8d786 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,20 +23,22 @@ build-debug-tests: - cd ${DEBUG_DIR} - cmake .. -DCMAKE_CXX_FLAGS="-g -O1 -Wall -Wpedantic -pedantic-errors -Wextra --coverage" -DTADAH_ENABLE_OPENMP=ON -DTADAH_BUILD_TESTS=ON - make -j ${CPU_BUILD} - - rm -rf _deps - - find . -name "*.a" -exec rm {} + - - find . -name "*.o" -exec rm {} + - artifacts: - paths: - - "${DEBUG_DIR}" +# - rm -rf _deps +# - find . -name "*.a" -exec rm {} + +# - find . -name "*.o" -exec rm {} + +# artifacts: +# paths: +# - "${DEBUG_DIR}" run-tests-1: + variables: + GIT_CLEAN_FLAGS: -ffdx -e ${DEBUG_DIR} -e CORE -e MODELS stage: run.unit.tests dependencies: [build-debug-tests] script: - cd ${DEBUG_DIR} - make test - - gcovr --exclude='.*/Eigen/.*' --exclude='.*/catch2/.*' --exclude='.*/tests/.*' --exclude='.*/CLI11/.*' --exclude='.*/toml11/.*' --exclude='.*/CMakeFiles/.*' -r .. + - gcovr --exclude='.*CMakeCXXCompilerId.cpp.*' --exclude='.*/Eigen/.*' --exclude='.*/catch2/.*' --exclude='.*/tests/.*' --exclude='.*/CLI11/.*' --exclude='.*/toml11/.*' --exclude='.*/CMakeFiles/.*' -r .. coverage: /^TOTAL.*\s+(\d+\%)$/ build-release-shared: -- GitLab