Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
detector_benchmarks
Commits
736af1f5
Commit
736af1f5
authored
4 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
modified: .gitlab-ci.yml
parent
7957cf60
No related branches found
No related tags found
1 merge request
!20
Restructuring repo
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+117
-21
117 additions, 21 deletions
.gitlab-ci.yml
with
117 additions
and
21 deletions
.gitlab-ci.yml
+
117
−
21
View file @
736af1f5
...
...
@@ -2,79 +2,174 @@ image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
default
:
artifacts
:
expire_in
:
20
week
s
expire_in
:
1
20
min
s
paths
:
-
results/
-
datasets/
-
sim_output/
-
data
reports
:
dotenv
:
juggler.env
# exclude
:
# - .git/
# - datasets/.git/
before_script
:
-
git clone https://eicweb.phy.anl.gov/EIC/NPDet.git
#- git clone https://eicweb.phy.anl.gov/EIC/NPDet.git && mkdir NPDet/build && cd NPDet/build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 install && cd ../..
-
git clone https://eicweb.phy.anl.gov/EIC/detectors/topside.git && mkdir topside/build && cd topside/build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j20 install && cd ../..
-
git clone https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git && cd topside && ln -s ../accelerator/eic && cd ../.
# - cd NPDet/build && cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j10 && make install
stages
:
-
initialize
-
data_init
-
simulate
-
benchmarks
-
deploy
#- others
detector
:
stage
:
initialize
needs
:
[]
timeout
:
1 hours
cache
:
key
:
files
:
-
config/env.sh
-
util/build_detector.sh
prefix
:
"
$CI_COMMIT_REF_SLUG"
paths
:
-
.local/detector
-
.local/lib
artifacts
:
paths
:
-
.local/detector
-
.local/lib
-
results
-
config
script
:
-
./util/print_env.sh
-
./util/build_detector.sh
-
./util/print_env.sh
-
mkdir -p results
-
mkdir -p config
get_data
:
stage
:
data_init
tags
:
-
silicon
needs
:
[
"
detector"
]
script
:
-
git clone https://eicweb.phy.anl.gov/EIC/datasets.git datasets
-
git clone
--depth=1
https://eicweb.phy.anl.gov/EIC/datasets.git datasets
-
ln -s datasets/data
-
mkdir -p results
-
mkdir -p sim_output
#generate_config:
# stage: ci_gen
# tags:
# - silicon
# script:
# - ./bin/gen_ci_config -p track_test_ -i trackers > results/trackers_config.yml
# - ./bin/gen_ci_config -p cal_test_ -i calorimeters > results/calorimeters_config.yml
# - ./bin/gen_ci_config -p pid_test_ -i pid > results/pid_config.yml
roman_pot_simu
:
stage
:
simulate
needs
:
-
[
"
get_data"
]
tags
:
-
silicon
-
[
"
get_data"
,
"
detector"
]
script
:
-
cp NPDet/src/detectors/trackers/compact/elements.xml ./.
-
cp NPDet/src/detectors/trackers/compact/materials.xml ./.
-
bash trackers/roman_pot_simu.sh
-
bash
benchmarks/
trackers/roman_pot_simu.sh
roman_pot_nhits
:
stage
:
benchmarks
needs
:
-
[
"
roman_pot_simu"
]
tags
:
-
silicon
-
[
"
roman_pot_simu"
,
"
detector"
]
script
:
-
root -b -q trackers/simple_tracking.cxx+
-
root -b -q
benchmarks/
trackers/simple_tracking.cxx+
allow_failure
:
true
roman_pot_eta
:
stage
:
benchmarks
needs
:
-
[
"
roman_pot_simu"
,
"
detector"
]
script
:
-
root -b -q benchmarks/trackers/roman_pot_hit_eta.cxx+
allow_failure
:
true
zdc_simulation
:
stage
:
simulate
needs
:
-
[
"
get_data"
,
"
detector"
]
script
:
-
cp NPDet/src/detectors/calorimeters/compact/elements.xml ./.
-
cp NPDet/src/detectors/calorimeters/compact/materials.xml ./.
-
bash benchmarks/calorimeters/run_simulation_zdc.sh
cal_test_3_zdc_neutrons_reader
:
stage
:
benchmarks
needs
:
-
[
"
zdc_simulation"
,
"
detector"
]
script
:
-
root -b -q benchmarks/calorimeters/zdc_neutrons_reader.cxx
allow_failure
:
true
zdc_benchmark
:
stage
:
benchmarks
needs
:
-
[
"
zdc_simulation"
,
"
detector"
]
script
:
-
ls -lrth sim_output
-
root -b -q benchmarks/calorimeters/simple_checking.cxx+
allow_failure
:
true
zdc_benchmark_info_histogram
:
stage
:
benchmarks
needs
:
-
[
"
zdc_simulation"
,
"
detector"
]
script
:
-
cp NPDet/src/detectors/calorimeters/compact/elements.xml calorimeters/
-
cp NPDet/src/detectors/calorimeters/compact/materials.xml calorimeters/
-
root -b -q benchmarks/calorimeters/simple_info_plot_histograms.cxx+
allow_failure
:
true
crystal_emcal_simulation
:
stage
:
simulate
needs
:
-
[
"
get_data"
,
"
detector"
]
tags
:
-
silicon
script
:
-
cp NPDet/src/detectors/calorimeters/compact/elements.xml ./.
-
cp NPDet/src/detectors/calorimeters/compact/materials.xml ./.
-
bash benchmarks/calorimeters/run_simulation_crystal.sh
crystal_benchmark
:
stage
:
benchmarks
needs
:
-
[
"
roman_pot_simu
"
]
-
[
"
crystal_emcal_simulation"
,
"
detector
"
]
script
:
-
root -b -q trackers/roman_pot_hit_eta.cxx+
-
ls -lrth sim_output
-
root -b -q benchmarks/calorimeters/simple_checking_crystal.cxx+
allow_failure
:
true
include
:
-
local
:
'
calorimeters/calorimeters_config.yml'
crystal_pion_simulation
:
stage
:
simulate
needs
:
-
[
"
get_data"
,
"
detector"
]
tags
:
-
silicon
script
:
-
source options/env.sh
-
npsim --runType batch --numberOfEvents 100 --compactFile ${DETECTOR_PATH}/topside.xml --inputFiles data/emcal_electrons.hepmc --outputFile sim_output/output_emcal_electrons.root
deploy_results
:
stage
:
deploy
needs
:
-
[
"
ben_emcal_barrel_electrons
"
]
-
[
"
zdc_benchmark"
,
"
zdc_benchmark_info_histogram"
,
"
detector
"
]
tags
:
-
silicon
script
:
-
echo "deploy results!"
pages
:
stage
:
deploy
rules
:
...
...
@@ -89,3 +184,4 @@ pages:
paths
:
-
public
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment