...
 
......@@ -9,7 +9,9 @@ variables:
dorie/dune-env:2.6
CMAKE_FLAGS:
-DDUNE_PYTHON_VIRTUALENV_SETUP=True
-DDUNE_PYTHON_ALLOW_GET_PIP=True
-DDUNE_PYTHON_ALLOW_GET_PIP=True
-DCMAKE_CXX_FLAGS='--coverage -O0'
image: $DUNE_ENV_IMAGE
......@@ -21,6 +23,7 @@ stages:
- prep
- build
- test
- test_coverage
- deploy
......@@ -158,6 +161,26 @@ test:mass_conserve:
- $DUNECONTROL --only=dorie configure
- $DUNECONTROL --only=dorie make test_mass_conservation
# --- Coverage jobs ---
test_coverage:
stage: test_coverage
dependencies:
- test:exec_cmds
- test:ode
- test:parallel
- test:reference
- test:mass_conserve
script:
- apt-get -y install gcovr lcov
- gcovr $CI_PROJECT_DIR/build-cmake
- lcov --no-external --capture --directory $CI_PROJECT_DIR/build-cmake/ --output-file coverage.info
- genhtml coverage.info --output-directory $CI_PROJECT_DIR/build-cmake/coverage
coverage: /^TOTAL.*\s+(\d+\%)$/
artifacts:
name: "$CI_JOB_NAME"
paths:
- $CI_PROJECT_DIR/build-cmake/coverage
expire_in: 1 day
# --- Deploy jobs ---
deploy:dockerhub-devel: &deploy
......@@ -188,4 +211,4 @@ deploy:dockerhub-stable:
- docker build -f docker/dorie.dockerfile
--build-arg DUNE_ENV_IMAGE=$DUNE_ENV_IMAGE --build-arg PROCNUM=$CPUS_DIND
-t dorie/dorie:$CI_COMMIT_TAG .
- docker push dorie/dorie:$CI_COMMIT_TAG
- docker push dorie/dorie:$CI_COMMIT_TAG
\ No newline at end of file
......@@ -7,6 +7,7 @@
* Documentation of Docker images and their usage in the CI/CD pipeline.
* DORiE now depends on [`yaml-cpp`](https://github.com/jbeder/yaml-cpp/), a
library for reading YAML files. The version required is >=5.2.0.
* CI now generates coverage index and files for analysis of the test system.
### Changed
* Rebuilds of the DUNE environment Docker image are now triggered by setting the
......