diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0160fe3b..30aa8890 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,12 +24,9 @@ build: - cmake ../DRAMSys - make -j 24 - find . -name "*.o" -type f -delete - # Create Base file to cover all lines + - rm -rf ${CI_PROJECT_DIR}/coverage - mkdir -p ${CI_PROJECT_DIR}/coverage - - cd ${CI_PROJECT_DIR}/coverage - - export GCOV_PREFIX=$(pwd) - - export GCOV_PREFIX_STRIP=$(pwd | awk -F"/" '{print NF-1}') - - lcov -q -c --initial --rc geninfo_adjust_src_path=$GCOV_PREFIX -d ${CI_PROJECT_DIR} -o ${CI_PROJECT_DIR}/coverage/base.out + cache: key: build @@ -39,7 +36,7 @@ build: artifacts: paths: - - coverage/base.out + - coverage/ coverage: stage: Coverage @@ -47,7 +44,6 @@ coverage: script: # delete all empty files since they produce errors - find coverage -size 0 -type f -delete - - rm coverage/base.out - ls coverage/ -lah - lcov `find coverage -type f -exec echo "-a {}" \;` -o coverage/final.out - lcov --remove coverage/final.out '*/systemc*/include/*' '*/traceAnalyzer/*' '*/gcc*/include/*' '/usr/include/*' '*/third_party/*' -o coverage/final_dramsys.out