Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
NPDet
Commits
d788e1eb
Commit
d788e1eb
authored
Oct 02, 2021
by
Wouter Deconinck
Browse files
cmake install locally and test npsim
parent
f35685c6
Pipeline
#19649
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d788e1eb
...
...
@@ -2,6 +2,7 @@ image: eicweb.phy.anl.gov:4567/containers/eic_container/jug_dev:testing
stages
:
-
build
-
test
-
container
-
deploy
...
...
@@ -25,10 +26,24 @@ compile:
artifacts
:
when
:
always
paths
:
-
install/
-
build/test_result_*.xml
reports
:
junit
:
build/test_result_*.xml
test_npsim
:
extends
:
.eicweb
needs
:
[
"
compile"
]
stage
:
test
script
:
-
mkdir -p test_files/
-
LD_LIBRARY_PATH=install/lib:$LD_LIBRARY_PATH install/bin/npsim --compactFile examples/gem_tracker_disc.xml --enableGun --numberOfEvents 10 --outputFile test_files/test_npsim.root
-
rootls -t test_files/test_npsim.root
artifacts
:
expire_in
:
3 days
paths
:
-
test_files/
docker_image
:
image
:
eicweb.phy.anl.gov:4567/containers/image_recipes/ubuntu_dind:latest
stage
:
container
...
...
bin/do_build
View file @
d788e1eb
#!/bin/bash
mkdir
build
cd
build
cmake
-DCMAKE_CXX_STANDARD
=
17 ..
make
-j30
make
test
cmake
-Bbuild
-S
.
-DCMAKE_CXX_STANDARD
=
17
-DCMAKE_INSTALL_PREFIX
=
install
cmake
--build
build
-j30
cmake
--build
build
--target
test
cmake
--install
build
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