Commit c29f1cba authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Merge branch 'CI' into 'preprod'

Update of the gitlab-ci script

See merge request IPNL_GAMMA/narval_emulator!32
parents 8798a85f 376bb5ea
image: gitlab-registry.in2p3.fr/ipnl_gamma/ganpro:latest image: gitlab-registry.in2p3.fr/ipnl_gamma/docker_gamma:latest
stages: stages:
- build - build
...@@ -13,30 +13,23 @@ compile: ...@@ -13,30 +13,23 @@ compile:
- mkdir AgataSoftware - mkdir AgataSoftware
- cd AgataSoftware - cd AgataSoftware
- git clone https://gitlab.in2p3.fr/IPNL_GAMMA/scripts.git - git clone https://gitlab.in2p3.fr/IPNL_GAMMA/scripts.git
- (exit `python scripts/gRaySoftware.py --adf=origin/preprod all | grep "recipe for target" | grep failed | wc -l`) - python scripts/gRaySoftware.py --adf=origin/preprod all
- (exit `python scripts/gRaySoftware.py --mfm= all | grep "recipe for target" | grep failed | wc -l`) - python scripts/gRaySoftware.py --mfm= all
- cp -r ../narval_emulator ./agapro - cp -r ../narval_emulator ./agapro
- echo "Compilation without ROOT..." - echo "Compilation without ROOT..."
- (exit `python scripts/gRaySoftware.py --agapro= conf compile install | grep "recipe for target" | grep failed | wc -l`) - python scripts/gRaySoftware.py --agapro= conf compile install
- export ROOTSYS=/opt/root/ - export ROOTSYS=/opt/root/
- export PATH=$ROOTSYS/bin/:$PATH - export PATH=$ROOTSYS/bin/:$PATH
- export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH - export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH
- echo "Compilation with ROOT..." - echo "Compilation with ROOT..."
- (exit `python scripts/gRaySoftware.py --agapro= conf compile install | grep "recipe for target" | grep failed | wc -l`) - python scripts/gRaySoftware.py --agapro= conf compile install
- cd agapro/ - cd agapro/
- mkdir -p cppcheck_output - 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 - 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/ - 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: artifacts:
paths: paths:
- ./cppcheck_output/output.xml - ./cppcheck_output/output.xml
# - ./doxygen.tgz
sonar: sonar:
stage: publish stage: publish
......
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