Commit f046d04d authored by PRUVOST Florent's avatar PRUVOST Florent

update gitlab-ci pipeline to perform a recurrence of 3 steps: build, test, sonar

parent d5a5ec43
......@@ -3,40 +3,77 @@ image: hpclib/scalfmm
stages:
- build
- test
- sonar
build:
stage: build
artifacts:
name: scalfmm_build
expire_in: 1 day
paths:
- Build/
script:
- cd Build && cmake ..
-DSCALFMM_USE_LOG=ON
-DSCALFMM_USE_ASSERT=ON
-DSCALFMM_USE_SSE=OFF
-DSCALFMM_USE_AVX=OFF
-DSCALFMM_USE_BLAS=ON
-DSCALFMM_USE_FFT=ON
-DSCALFMM_USE_MPI=ON
-DSCALFMM_USE_STARPU=ON
-DSCALFMM_BUILD_EXAMPLES=ON
-DSCALFMM_BUILD_TESTS=OFF
-DSCALFMM_BUILD_UTESTS=OFF
-DSCALFMM_BUILD_TESTS=ON
-DSCALFMM_BUILD_UTESTS=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_C_COMPILER=gcc-6
-DCMAKE_CXX_COMPILER=g++-6
- make -j8
- make -j5 2>&1 |tee scalfmm-build.log
doc:
stage: build
artifacts:
name: scalfmm_doc
expire_in: 1 day
paths:
- Build/Doc/html
script:
- cd Build && cmake ..
-DSCALFMM_BUILD_DOC=ON
-DCMAKE_C_COMPILER=gcc-6
-DCMAKE_CXX_COMPILER=g++-6
- make doc
test:
stage: test
dependencies:
- build
artifacts:
name: scalfmm_test
expire_in: 1 day
paths:
- Build/
script:
- (cd Build && OMP_NUM_THREADS=4 ctest --no-compress-output -V -j 5 -D ExperimentalBuild -D ExperimentalTest -D ExperimentalCoverage -D ExperimentalSubmit)
sonar:
stage: sonar
dependencies:
- test
artifacts:
name: scalfmm_sonar
expire_in: 1 day
paths:
- scalfmm-build.log
- scalfmm.lcov
- scalfmm-coverage.xml
- scalfmm-cppcheck.xml
- scalfmm-rats.xml
- sonar-project.properties
- sonar.log
script:
- mv Build/scalfmm-build.log .
- source ./Utils/scripts/analysis.sh
- sonar-scanner |tee sonar.log
- if [[ $CI_REPOSITORY_URL = *"solverstack/ScalFMM"* ]] && [[ $CI_COMMIT_REF_NAME = *"develop"* ]]; then
sonar-scanner -X 2>&1 |tee sonar.log;
sonar-scanner |tee sonar.log;
fi
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