image: gitlab-registry.in2p3.fr/ipnl_gamma/docker_gamma:latest stages: - build - publish compile: stage: build script: - cd .. - export CMAKE_BUILD_TYPE=debug - rm -rf AgataSoftware - mkdir AgataSoftware - cd AgataSoftware - git clone https://gitlab.in2p3.fr/IPNL_GAMMA/scripts.git - python scripts/gRaySoftware.py --adf=origin/preprod all - python scripts/gRaySoftware.py --mfm= all - cp -r ../narval_emulator ./agapro - echo "Compilation without ROOT..." - python scripts/gRaySoftware.py --agapro= conf compile install - export ROOTSYS=/opt/root/ - export PATH=$ROOTSYS/bin/:$PATH - export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH - echo "Compilation with ROOT..." - python scripts/gRaySoftware.py --agapro= conf compile install - 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/ artifacts: paths: - ./cppcheck_output/output.xml sonar: stage: publish only: - preprod@IPNL_GAMMA/narval_emulator script: - pwd - ls -l - cd zUseful/sonar/ - echo $SONAR_ID >> sonar-project.properties - sonar-scanner