.gitlab-ci.yml 1.59 KB
Newer Older
1
image: gitlab-registry.in2p3.fr/ipnl_gamma/docker_gamma:latest
2 3 4 5 6 7 8 9 10 11 12 13 14

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
15 16 17 18 19 20 21
    - 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
22
    - cd LYON
Stezowski Olivier's avatar
Stezowski Olivier committed
23 24
    - cp -r ../../gammaware/ .
    - mv gammaware gw
Stezowski Olivier's avatar
Stezowski Olivier committed
25
    - cd ..
26 27 28
    - export ROOTSYS=/opt/root/
    - export PATH=$ROOTSYS/bin/:$PATH
    - export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH
29
    - echo "Compilation with ROOT..."
30
    - echo $PWD
31
    - python scripts/gRaySoftware.py --cmake="-DCMAKE_BUILD_TYPE=debug -- -j 4" --gw= conf compile install
32 33 34 35
    - 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/
36 37 38 39 40 41 42
    - cd doc/
    - rm -rf html
    - cd ../
    - doxygen Doxyfile.in
    - cd doc
    - tar -czf doxygen.tgz html
    - cp doxygen.tgz ../../../../gammaware/
43 44 45
  artifacts:
     paths:
       - ./cppcheck_output/output.xml
46
       - ./doxygen.tgz
47 48 49 50

sonar:
  stage: publish
  only: 
51
    - preprod@IPNL_GAMMA/gammaware
52
  script:
Stezowski Olivier's avatar
Stezowski Olivier committed
53
    - cd doc/sonar/
54 55
    - echo $SONAR_ID >> sonar-project.properties
    - sonar-scanner