- Remove nested minimum required to supress warnings. - Declare SystemC as system library to supress warnings in headers. - Add a BUILD_SHARED_LIBS option - Remove hardcoded STATIC in various add_library calls to honor the BUILD_SHARED_LIBS option - Remove _deps/ directory from the build directory in GitLab pipeline - Remove *.tdb files after test stage in pipeline - Set Ninja as the default generator for the dev preset and re-enable colored diagnostics
46 lines
966 B
YAML
46 lines
966 B
YAML
# vim: set ts=4 sw=4 expandtab:
|
|
image: ubuntu-dramsys
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- coverage
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- cmake --preset ci-coverage
|
|
- cmake --build build/coverage -j$(nproc)
|
|
after_script:
|
|
- find . -name "*.o" -type f -delete
|
|
- find . -name "*.a" -type f -delete
|
|
- rm -r build/coverage/_deps
|
|
artifacts:
|
|
paths:
|
|
- build/coverage
|
|
expire_in: 1 hour
|
|
|
|
test:
|
|
stage: test
|
|
needs:
|
|
- build
|
|
script:
|
|
- cd build/coverage
|
|
- ctest --output-on-failure -j$(nproc)
|
|
after_script:
|
|
- find . -name "*.tdb" -type f -delete
|
|
artifacts:
|
|
paths:
|
|
- build/coverage
|
|
expire_in: 1 hour
|
|
coverage:
|
|
stage: coverage
|
|
needs:
|
|
- test
|
|
script:
|
|
- cmake --build build/coverage --target coverage
|
|
artifacts:
|
|
paths:
|
|
- build/coverage/coverage_html
|
|
expire_in: 1 hour
|