From cf9c4de2344bf2940a71a7982600e1425acbbd5b Mon Sep 17 00:00:00 2001
From: Sylvester Joosten <sjoosten@anl.gov>
Date: Fri, 24 Jul 2020 20:35:13 -0500
Subject: [PATCH] Updated CI for new container

---
 .gitlab-ci.yml                     | 7 +++++--
 calorimeters/run_simulation_zdc.sh | 2 +-
 trackers/roman_pot_simu.sh         | 2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dc16aca5..89ad5bda 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -88,6 +88,7 @@ cal_test_3_zdc_neutrons_reader:
   tags:
     - sodium
   script:
+    - source /etc/profile
     - root -b -q calorimeters/zdc_neutrons_reader.cxx
   allow_failure: true
 
@@ -112,6 +113,7 @@ roman_pot_nhits:
   tags:
     - sodium
   script:
+    - source /etc/profile
     - root -b -q trackers/simple_tracking.cxx+
   allow_failure: true
 
@@ -120,6 +122,7 @@ roman_pot_eta:
   tags:
     - sodium
   script:
+    - source /etc/profile
     - root -b -q trackers/roman_pot_hit_eta.cxx+
   allow_failure: true
 
@@ -128,6 +131,7 @@ zdc_benchmark:
   tags:
     - sodium
   script:
+    - source /etc/profile
     - ls -lrth sim_output
     - root -b -q calorimeters/simple_checking.cxx+
   allow_failure: true
@@ -186,6 +190,5 @@ deploy_results:
       #  - cd doc && doxygen Doxyfile && mv doxygen_output/html/ ../public/
       #  artifacts:
       #    paths:
-      #    - public
-      #  only:
+      #    - public #  only:
       #  - master
diff --git a/calorimeters/run_simulation_zdc.sh b/calorimeters/run_simulation_zdc.sh
index 76216c4b..abcccd9b 100755
--- a/calorimeters/run_simulation_zdc.sh
+++ b/calorimeters/run_simulation_zdc.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source /usr/local/bin/thisdd4hep.sh
+source /etc/profile
 
 ddsim --runType batch --numberOfEvents 100 \
       --compactFile ./calorimeters/ZDC_example.xml \
diff --git a/trackers/roman_pot_simu.sh b/trackers/roman_pot_simu.sh
index 7f15f490..5d2daaa3 100755
--- a/trackers/roman_pot_simu.sh
+++ b/trackers/roman_pot_simu.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-source /usr/local/bin/thisdd4hep.sh
+source /etc/profile
 
 ddsim --runType batch -N 300 \
 	--inputFiles ./data/forward_ions.hepmc \
-- 
GitLab