.gitlab-ci.yml back to older version

This commit is contained in:
scorrea
2020-06-30 17:07:51 +02:00
parent 6e8ea831c6
commit f0d3a081c8

View File

@@ -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