Commit 37e26b33 authored by Stezowski Olivier's avatar Stezowski Olivier
Browse files

add gitlab Continuous Integration

parent 6cd7e3d9
Pipeline #12009 failed
image: gitlab-registry.in2p3.fr/ipnl_gamma/ganpro: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 LYON
- cd LYON
- mkdir gw
- cp -r ../gammaware/ ./LYON/gw
- cd ..
- export ROOTSYS=/opt/root/
- export PATH=$ROOTSYS/bin/:$PATH
- export LD_LIBRARY_PATH=$ROOTSYS/lib/:$LD_LIBRARY_PATH
- echo "Compilation with ROOT..."
- (exit `python scripts/gRaySoftware.py --cmake="-DCMAKE_BUILD_TYPE=debug -- -j 4" --gw= conf compile install | grep "recipe for target" | grep failed | wc -l`)
- 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 doxyfiles/
# - rm -rf doc
# - doxygen Doxyfile.in
# - cd doc
# - tar -czf doxygen.tgz html
# - cp doxygen.tgz ../../../../narval_emulator/
artifacts:
paths:
- ./cppcheck_output/output.xml
# - ./doxygen.tgz
sonar:
stage: publish
only:
- preprod@IPNL_GAMMA/gw
script:
- pwd
- ls -l
# - cd zUseful/sonar/
# - echo $SONAR_ID >> sonar-project.properties
# - sonar-scanner
......@@ -17,7 +17,7 @@
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
# by quotes) that should identify the project.
PROJECT_NAME = "@PACKAGE_NAME@"
PROJECT_NAME = "GammaWare"
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
# This could be handy for archiving the generated documentation or
......
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