Commit d788e1eb authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

cmake install locally and test npsim

parent f35685c6
Pipeline #19649 failed
......@@ -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/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
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