Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit b388429b authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Update docker image for CI with coverage

parent 296ca60a
Pipeline #101272 passed with stages
in 4 minutes and 53 seconds
image: gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixhdf5/hdf5:0.2
image: gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixhdf5/hdf5:0.3
stages:
- BuildTestinstall
- CoverageTestinstall
- DocCoverage
- deploy
#- build
......@@ -34,35 +34,38 @@ dailyBuildMasterAll:
- tags
tags:
dailyCoverageMasterAll:
#cache:
#untracked: true
#paths:
#- build/
stage: CoverageTestinstall
TestCoverage:
stage: DocCoverage
script:
- export LD_LIBRARY_PATH=/usr/lib
- env
- mkdir -p build
- mkdir -p build coverage
- cd build
- >
cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-DRELEASE_MODE=yes
-DSELF_TESTS_MODE=yes
-DCMAKE_BUILD_TYPE=Coverage
- make all
- make install
- make test
- make ExperimentalCoverage
- cd ../coverage
- gcovr -r ../ --html cov_report.html --html-details
- gcovr -r ../ --xml Coverage.xml
artifacts:
paths:
- coverage
expire_in: 1d
only:
- branches
- tags
tags:
pages:
stage: deploy
Doc:
stage: DocCoverage
script:
- export LD_LIBRARY_PATH=/usr/lib
- env
......@@ -77,7 +80,6 @@ pages:
- >
cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-DRELEASE_MODE=yes
-DDOC_MODE=yes
-DSELF_TESTS_MODE=no
- make all
......@@ -94,3 +96,12 @@ pages:
tags:
pages:
stage: deploy
script:
- mv coverage public/
artifacts:
paths:
- public
expire_in: 1d
/** @brief Program to generate class which save data into hdf5 file as DataSet
*
*
*/
/** @mainpage Program to generate class which save data into hdf5 file as DataSet
*
* <a href="../coverage/cov_report.html">See test coverage detail from gcovr</a><br />
<a href="../coverage/Coverage.xml">See test coverage report</a>
*/
# Version 0.2
# Version 0.3
FROM ubuntu:20.04
# Ensure use of bash
......@@ -22,7 +22,7 @@ RUN apt-get install -y wget
RUN apt-get install -y gcc g++ cmake make git
RUN apt-get install -y libhdf5-dev
RUN apt-get install -y doxygen graphviz
RUN apt-get install -y gcovr
# && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
......
#!/bin/bash
docker build -t hdf5:0.1 .
docker build -t hdf5:0.3 .
# docker login gitlab-registry.in2p3.fr -u paubert
docker build -t gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixhdf5/hdf5:0.1 .
docker build -t gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixhdf5/hdf5:0.3 .
docker push gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixhdf5/hdf5:0.1
docker push gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixhdf5/hdf5:0.3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment