Files
DRAMSys/.gitlab-ci.yml
2023-02-23 13:40:17 +01:00

53 lines
1.6 KiB
YAML

# 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 -DDRAMSYS_ENABLE_EXTENSIONS=ON -DDRAMSYS_EXTENSION_TRACE_ANALYZER_ENABLE=ON -DDRAMSYS_WITH_DRAMPOWER=ON ..
- make -j 10
- find . -name "*.o" -type f -delete
artifacts:
paths:
- build/
- 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 '/build/_deps/*' '/lib/*' '/usr/*' -o coverage/final_dramsys.out
- lcov --list coverage/final_dramsys.out
include:
- 'tests/tests_regression/DDR3/ci.yml'
- 'tests/tests_regression/DDR4/ci.yml'
- 'tests/tests_regression/HBM2/ci.yml'
- 'tests/tests_regression/LPDDR4/ci.yml'
#- '/DRAMSys/tests/dramsys-gem5/ci.yml' # Should be activated again when a new gitlab runner with right dependencies is used