Moved creation of directory coverage to jobs

This commit is contained in:
Johannes Feldmann
2018-12-18 10:21:12 +01:00
parent 40b1690ddf
commit d7c6628eaa
3 changed files with 5 additions and 2 deletions

View File

@@ -23,11 +23,10 @@ build:
- cd build
- qmake ../DRAMSys/DRAMSys.pro
- make -j4
- mkdir -p ${CI_PROJECT_DIR}/coverage
coverage:
stage: Coverage
coverage: '/^TOTAL.*\s+(\d+\%)$/'
coverage: '/^\s*lines\s*\d+.\d+\%/'
script:
- lcov `find coverage -type f -exec echo "-a {}" \;` -o coverage/final.out
artifacts:

View File

@@ -11,6 +11,7 @@ example_ddr3:
- cd ../traceAnalyzer
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/ddr3-example_ddr3_ch0.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
# Run Code Coverage
- mkdir -p ${CI_PROJECT_DIR}/coverage
- lcov -c -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
artifacts:
paths:
@@ -31,6 +32,7 @@ fr_fcfs:
- cd ../traceAnalyzer
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/ddr3-fr_fcfs_ddr3_ch0.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
# Run Code Coverage
- mkdir -p ${CI_PROJECT_DIR}/coverage
- lcov -c -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
allow_failure: true # TODO should be removed after first tests
@@ -49,6 +51,7 @@ protocol_checker:
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-protocol_checker.xml ../../DRAMSys/tests/DDR3/
- echo "TODO"
# Run Code Coverage
- mkdir -p ${CI_PROJECT_DIR}/coverage
- lcov -c -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
artifacts:

View File

@@ -16,6 +16,7 @@ example_wideio:
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/wideio-example_wideio_ch2.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/wideio-example_wideio_ch3.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
# Run Code Coverage
- mkdir -p ${CI_PROJECT_DIR}/coverage
- lcov -c -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
allow_failure: true # TODO: should be removed once the problems are fixed!