Commit c3b7f487 authored by Guillaume Baulieu's avatar Guillaume Baulieu Committed by Jérémie Dudouet
Browse files

Add a gitlab CI script

parent 75fa99c3
image: gitlab-registry.in2p3.fr/ipnl_gamma/ganpro:latest
stages:
- build
- publish
compile:
stage: build
script:
- cd ..
- export CMAKE_BUILD_TYPE=debug
- rm -rf AgataSoftware
- mkdir AgataSoftware
- cd AgataSoftware
- git clone git@gitlab.in2p3.fr:IPNL_GAMMA/scripts.git
- (exit `python scripts/gRaySoftware.py --adf= all | grep "recipe for target" | grep failed | wc -l`)
- (exit `python scripts/gRaySoftware.py --mfm= all | grep "recipe for target" | grep failed | wc -l`)
- cp -r ../narval_emulator ./agapro
- echo "Compilation without ROOT..."
- (exit `python scripts/gRaySoftware.py --agapro= conf compile install | grep "recipe for target" | grep failed | wc -l`)
- export ROOTSYS=/opt/root/
- export PATH=$ROOTSYS/bin/:$PATH
- export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH
- echo "Compilation with ROOT..."
- (exit `python scripts/gRaySoftware.py --agapro= conf compile install | grep "recipe for target" | grep failed | wc -l`)
- cd agapro/
- mkdir -p cppcheck_output
- cppcheck --xml --xml-version=2 --enable=style,performance,portability,unusedFunction -i AGATREE -i PRISMA -i cmake -i config -i zPrograms -i zUseful . 2> cppcheck_output/output.xml
- cp -r cppcheck_output ../../narval_emulator/
# - cd doxyfiles/
# - rm -rf doc
# - doxygen Doxyfile.in
# - cd doc
# - tar -czf doxygen.tgz html
# - cp doxygen.tgz ../../../../narval_emulator/
artifacts:
paths:
- ./cppcheck_output/output.xml
# - ./doxygen.tgz
sonar:
stage: publish
only:
- preprod@IPNL_GAMMA/agapro
script:
- pwd
- ls -l
# - cd zTest/sonar/
# - echo $SONAR_ID >> sonar-project.properties
# - sonar-scanner
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