image: gitlab-registry.in2p3.fr/ipnl_gamma/docker_gamma:latest stages: - build - publish compile: stage: build script: - cd .. - rm -rf gammaSoftware - mkdir gammaSoftware - cd gammaSoftware - git clone https://gitlab.in2p3.fr/IPNL_GAMMA/scripts.git - mkdir agaprodep - cd agaprodep - cp -r ../../gammaware/ . - mv gammaware adf - cd .. - echo "Compilation of ADF..." - python scripts/gRaySoftware.py --cmake="-DCMAKE_BUILD_TYPE=Debug -- -j 4" --adf= conf compile install - cd LYON - cp -r ../../gammaware/ . - mv gammaware gw - cd .. - export ROOTSYS=/opt/root/ - export PATH=$ROOTSYS/bin/:$PATH - export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH - echo "Compilation with ROOT..." - echo $PWD - python scripts/gRaySoftware.py --cmake="-DCMAKE_BUILD_TYPE=Debug -- -j 4" --gw= conf compile install - 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 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 sonar: stage: publish only: - preprod@IPNL_GAMMA/gammaware script: - cd doc/sonar/ - echo $SONAR_ID >> sonar-project.properties - sonar-scanner