Skip to content
Snippets Groups Projects
Commit 736af1f5 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: .gitlab-ci.yml

parent 7957cf60
No related branches found
No related tags found
1 merge request!20Restructuring repo
...@@ -2,79 +2,174 @@ image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG ...@@ -2,79 +2,174 @@ image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:$JUGGLER_TAG
default: default:
artifacts: artifacts:
expire_in: 20 weeks expire_in: 120 mins
paths: paths:
- results/ - results/
- datasets/ - datasets/
- sim_output/ - sim_output/
- data - data
reports: # exclude:
dotenv: juggler.env # - .git/
# - datasets/.git/
before_script: before_script:
- git clone https://eicweb.phy.anl.gov/EIC/NPDet.git - 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/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: stages:
- initialize
- data_init - data_init
- simulate - simulate
- benchmarks - benchmarks
- deploy - 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: get_data:
stage: data_init stage: data_init
tags: needs: ["detector"]
- silicon
script: 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 - ln -s datasets/data
- mkdir -p results - mkdir -p results
- mkdir -p sim_output - 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: roman_pot_simu:
stage: simulate stage: simulate
needs: needs:
- ["get_data"] - ["get_data","detector"]
tags:
- silicon
script: script:
- cp NPDet/src/detectors/trackers/compact/elements.xml ./. - cp NPDet/src/detectors/trackers/compact/elements.xml ./.
- cp NPDet/src/detectors/trackers/compact/materials.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: roman_pot_nhits:
stage: benchmarks stage: benchmarks
needs: needs:
- ["roman_pot_simu"] - ["roman_pot_simu","detector"]
tags:
- silicon
script: script:
- root -b -q trackers/simple_tracking.cxx+ - root -b -q benchmarks/trackers/simple_tracking.cxx+
allow_failure: true allow_failure: true
roman_pot_eta: roman_pot_eta:
stage: benchmarks 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: tags:
- silicon - 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: needs:
- ["roman_pot_simu"] - ["crystal_emcal_simulation","detector"]
script: 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 allow_failure: true
include: crystal_pion_simulation:
- local: 'calorimeters/calorimeters_config.yml' 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: deploy_results:
stage: deploy stage: deploy
needs: needs:
- ["ben_emcal_barrel_electrons"] - ["zdc_benchmark","zdc_benchmark_info_histogram","detector"]
tags: tags:
- silicon - silicon
script: script:
- echo "deploy results!" - echo "deploy results!"
pages: pages:
stage: deploy stage: deploy
rules: rules:
...@@ -89,3 +184,4 @@ pages: ...@@ -89,3 +184,4 @@ pages:
paths: paths:
- public - public
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment