# vim: set ts=4 sw=4 expandtab: image: gcc before_script: - apt-get update --yes - apt-get install --yes cmake python3 python3-dev qtbase5-dev libqwt-qt5-dev sqlite3 lcov stages: - build - test_DDR3 - test_DDR4 - test_HBM2 - test_LPDDR4 - coverage build: stage: build script: - git submodule sync - git submodule update --init --recursive - ls - mkdir -p coverage - mkdir -p build - cd build - cmake -DDRAMSYS_COVERAGE_CHECK=ON ../DRAMSys - make -j 10 - find . -name "*.o" -type f -delete artifacts: paths: - build/ - DRAMSys/tests/ - coverage/ expire_in: 2 days coverage: stage: coverage coverage: '/Total:\|(\d+\.?\d+\%)/' script: # delete all empty files since they produce errors - find coverage -size 0 -type f -delete - 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 - lcov --list coverage/final_dramsys.out include: - '/DRAMSys/tests/DDR3/ci.yml' - '/DRAMSys/tests/DDR4/ci.yml' - '/DRAMSys/tests/HBM2/ci.yml' - '/DRAMSys/tests/LPDDR4/ci.yml' #- '/DRAMSys/tests/dramsys-gem5/ci.yml' # Should be activated again when a new gitlab runner with right dependencies is used