.gitlab-ci.yml 1.54 KB
Newer Older
1
image: gitlab-registry.in2p3.fr/ipnl_gamma/docker_gamma:latest
Guillaume Baulieu's avatar
Guillaume Baulieu committed
2 3 4 5 6 7 8 9 10 11 12 13 14

stages:
    - build
    - publish

compile:
  stage: build 
  script:
    - cd ..
    - export CMAKE_BUILD_TYPE=debug
    - rm -rf AgataSoftware
    - mkdir AgataSoftware
    - cd AgataSoftware
15
    - export gRaySoftware_Version=1
16
    - git clone https://gitlab.in2p3.fr/IPNL_GAMMA/scripts.git
17 18
    - python scripts/gRaySoftware.py --adf=origin/preprod all
    - python scripts/gRaySoftware.py --mfm= all
Guillaume Baulieu's avatar
Guillaume Baulieu committed
19 20
    - cp -r ../narval_emulator ./agapro
    - echo "Compilation without ROOT..." 
21
    - python scripts/gRaySoftware.py --agapro= conf compile install
Guillaume Baulieu's avatar
Guillaume Baulieu committed
22 23 24 25
    - export ROOTSYS=/opt/root/
    - export PATH=$ROOTSYS/bin/:$PATH
    - export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH
    - echo "Compilation with ROOT..." 
26
    - python scripts/gRaySoftware.py --agapro= conf compile install
27 28 29 30 31
    - echo "Compilation of femul..."
    - cd LNL
    - ln -s ../agapro/WinCtest femul
    - cd .. 
    - python scripts/gRaySoftware.py --femul= conf compile install
Guillaume Baulieu's avatar
Guillaume Baulieu committed
32 33 34 35 36 37 38 39 40 41 42
    - 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: 
43
    - preprod@IPNL_GAMMA/narval_emulator
Guillaume Baulieu's avatar
Guillaume Baulieu committed
44 45 46
  script:
    - pwd
    - ls -l 
47 48 49
    - cd zUseful/sonar/ 
    - echo $SONAR_ID >> sonar-project.properties
    - sonar-scanner