Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Guillaume Baulieu
agapro
Commits
c3b7f487
Commit
c3b7f487
authored
May 28, 2018
by
Guillaume Baulieu
Committed by
Jérémie Dudouet
May 31, 2018
Browse files
Add a gitlab CI script
parent
75fa99c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
.gitlab-ci.yml
.gitlab-ci.yml
+50
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
c3b7f487
image
:
gitlab-registry.in2p3.fr/ipnl_gamma/ganpro:latest
stages
:
-
build
-
publish
compile
:
stage
:
build
script
:
-
cd ..
-
export CMAKE_BUILD_TYPE=debug
-
rm -rf AgataSoftware
-
mkdir AgataSoftware
-
cd AgataSoftware
-
git clone git@gitlab.in2p3.fr:IPNL_GAMMA/scripts.git
-
(exit `python scripts/gRaySoftware.py --adf= all | grep "recipe for target" | grep failed | wc -l`)
-
(exit `python scripts/gRaySoftware.py --mfm= all | grep "recipe for target" | grep failed | wc -l`)
-
cp -r ../narval_emulator ./agapro
-
echo "Compilation without ROOT..."
-
(exit `python scripts/gRaySoftware.py --agapro= conf compile install | grep "recipe for target" | grep failed | wc -l`)
-
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 --agapro= conf compile install | grep "recipe for target" | grep failed | wc -l`)
-
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/
# - 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/agapro
script
:
-
pwd
-
ls -l
# - cd zTest/sonar/
# - echo $SONAR_ID >> sonar-project.properties
# - sonar-scanner
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment