Skip to content
Snippets Groups Projects
Commit d788e1eb authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

cmake install locally and test npsim

parent f35685c6
No related branches found
No related tags found
3 merge requests!273Draft: Resolve "Support FastSim and GFlash",!234cmake install locally and test npsim,!197Allow for multithreading in npsim
...@@ -2,6 +2,7 @@ image: eicweb.phy.anl.gov:4567/containers/eic_container/jug_dev:testing ...@@ -2,6 +2,7 @@ image: eicweb.phy.anl.gov:4567/containers/eic_container/jug_dev:testing
stages: stages:
- build - build
- test
- container - container
- deploy - deploy
...@@ -25,10 +26,24 @@ compile: ...@@ -25,10 +26,24 @@ compile:
artifacts: artifacts:
when: always when: always
paths: paths:
- install/
- build/test_result_*.xml - build/test_result_*.xml
reports: reports:
junit: build/test_result_*.xml 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: docker_image:
image: eicweb.phy.anl.gov:4567/containers/image_recipes/ubuntu_dind:latest image: eicweb.phy.anl.gov:4567/containers/image_recipes/ubuntu_dind:latest
stage: container stage: container
......
#!/bin/bash #!/bin/bash
mkdir build cmake -Bbuild -S. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=install
cd build cmake --build build -j30
cmake -DCMAKE_CXX_STANDARD=17 .. cmake --build build --target test
make -j30 cmake --install build
make test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment