Skip to content
Snippets Groups Projects

Update coverage CI job to use gcc 13

Closed Duncan Macleod requested to merge duncanmmacleod/lalsuite:ci-coverage-gcc-13 into master
+ 6
6
@@ -1558,14 +1558,14 @@ platform:conda:macos-arm64:
# Note: adapted from https://git.ligo.org/lscsoft/ligo.skymap
coverage:
stage: coverage
image: igwn/lalsuite-dev-gcc:8
image: igwn/lalsuite-dev-gcc:13
timeout: 2 hours
needs: []
before_script:
- *init-build-job
- apt-get -y install --no-install-recommends python3-pip
- python3 -m pip install --upgrade pip
- python3 -m pip install
- python3 -m pip install --user --upgrade pip
- python3 -m pip install --user
coverage
"gcovr!=5.1"
pycobertura
@@ -1583,7 +1583,7 @@ coverage:
PY_LOG_FLAGS="-m coverage run --source \"$(pwd)\" --omit \*/test/\* -p"
after_script:
# Output C coverage data in Cobertura format
- gcovr
- python3 -m gcovr
-j ${CPU_COUNT}
--exclude '(.+/)?swiglal_[a-z]+\.c$'
--exclude-directories 'lal([a-z]+/)?test'
@@ -1621,8 +1621,8 @@ coverage:
doc1.write('coverage.xml')
EOF
# Write HTML coverage report and show coverage summary.
- pycobertura show coverage.xml -f html -o coverage.html
- pycobertura show coverage.xml | tail -n 1
- python3 -m pycobertura show coverage.xml -f html -o coverage.html
- python3 -m pycobertura show coverage.xml | tail -n 1
coverage: '/TOTAL\s+.*\s+([\d\.]+)%/'
artifacts:
expose_as: coverage
Loading