Commit 7d9d1573 authored by Stezowski Olivier's avatar Stezowski Olivier
Browse files

add sonar cube et doxygen in CI

parent d03aff37
Pipeline #12035 failed with stages
in 3 minutes and 50 seconds
......@@ -22,30 +22,30 @@ compile:
- export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH
- echo "Compilation with ROOT..."
- echo $PWD
# - python scripts/gRaySoftware.py --gw= conf compile install
- (exit `python scripts/gRaySoftware.py --cmake="-DCMAKE_BUILD_TYPE=debug -- -j 4" --gw= conf compile install | grep "recipe for target" | grep failed | wc -l`)
- cd LYON/gw/
- mkdir -p cppcheck_output
- cppcheck --xml --xml-version=2 --enable=style,performance,portability,unusedFunction -i config -i debug -i cmake -i demos -i doc -i doxyfiles -i icons -i macros -i ndb -i scripts . 2> cppcheck_output/output.xml
- cp -r cppcheck_output ../../../gammaware/
# - cd doxyfiles/
# - rm -rf doc
# - doxygen Doxyfile.in
# - cd doc
# - tar -czf doxygen.tgz html
# - cp doxygen.tgz ../../../../narval_emulator/
- cd doc/
- rm -rf html
- cd ../
- doxygen Doxyfile.in
- cd doc
- tar -czf doxygen.tgz html
- cp doxygen.tgz ../../../../gammaware/
artifacts:
paths:
- ./cppcheck_output/output.xml
# - ./doxygen.tgz
- ./doxygen.tgz
sonar:
stage: publish
only:
- preprod@IPNL_GAMMA/gw
- preprod@IPNL_GAMMA/gammaware
script:
- pwd
- ls -l
# - cd zUseful/sonar/
# - echo $SONAR_ID >> sonar-project.properties
# - sonar-scanner
- cd /sonar/
- echo $SONAR_ID >> sonar-project.properties
- sonar-scanner
......@@ -460,7 +460,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT = @SUBPROJETS@ \
INPUT = src \
doxyfiles/ \
demos/ \
macros
......
# must be unique in a given SonarQube instance
sonar.projectKey=matnuc:AgaPro
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=AgaPro
sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
sonar.projectBaseDir=../../
sonar.sources=.
sonar.cxx.cppcheck.reportPath=./cppcheck_output/
#sonar.cxx.coverage.reportPath=./gcov_output/
#sonar.cxx.valgrind.reportPath=./valgrind_output/
#sonar.cxx.coverage.forceZeroCoverage=true
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
sonar.host.url=https://sonar.ipnl.in2p3.fr
sonar.scm.provider=git
sonar.exclusions=**/*.xml,AGATREE/**,cmake/**,PRISMA/**,config/**,zPrograms/**,zUseful/**
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