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

Commit 1bd62dd7 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add test and update CI

parent 5f606124
Pipeline #99003 passed with stages
in 7 minutes and 42 seconds
image: gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixhdf5/hdf5:0.2
image: gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenix/phoenix_minimal:0.2
stages:
- BuildTestinstall
- DocCoverage
- deploy
#- build
......@@ -9,8 +10,6 @@ stages:
#- deploy
dailyBuildMasterAll:
variables:
CONDA_ENV_DIR: /opt/conda/envs/ctadev
#cache:
#untracked: true
#paths:
......@@ -29,16 +28,42 @@ dailyBuildMasterAll:
-DSELF_TESTS_MODE=yes
- make all
- make install
#- make test
- make test
only:
- branches
- tags
tags:
pages:
variables:
CONDA_ENV_DIR: /opt/conda/envs/ctadev
stage: deploy
TestCoverage:
stage: DocCoverage
script:
- export LD_LIBRARY_PATH=/usr/lib
- env
- mkdir -p build coverage
- cd build
- >
cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-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:
Doc:
stage: DocCoverage
script:
- export LD_LIBRARY_PATH=/usr/lib
- env
......@@ -49,19 +74,18 @@ pages:
#- rm -fr PhoenixTex2Html
- rm -fr build public
- mkdir -p build
- mkdir -p public/html
- mkdir -p public
- cd build
- >
cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-DRELEASE_MODE=yes
-DDOC_MODE=yes
-DSELF_TESTS_MODE=no
- make all
- make doc
#- scp -r doc/platex/* ../public
#- scp -r doc/html/* ../public/html
- scp -r doc/html/* ../public/
- scp -r doc/html/* ../public
artifacts:
paths:
- public
......@@ -72,3 +96,16 @@ pages:
tags:
pages:
stage: deploy
script:
- mv coverage public/
artifacts:
paths:
- public
expire_in: 1d
......@@ -11,5 +11,8 @@ add_executable(test_proxy_hadamard_product main.cpp)
target_link_libraries(test_proxy_hadamard_product hadamard_product dl)
add_test(NAME TestProxyHadamardProduct
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/test_proxy_hadamard_product
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
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