Commit 38e50c2f authored by Fabio Ravera's avatar Fabio Ravera
Browse files

Merge branch 'ci_tests' into 'Dev'

Ci tests

See merge request cms_tk_ph2/Ph2_ACF!152
parents c7df9732 69426c30
# YAML script for CI of Ph2_ACF Software/Middleware
# Author: Emery Nibigira (IPHC-Strasbourg)
# emery.nibigira@cern.ch
## YAML script for CI of Ph2_ACF Software/Middleware
## Author: Emery Nibigira (IPHC-Strasbourg)
## emery.nibigira@cern.ch
# The pipeline starts when a merge request is created
## The pipeline starts when a merge request is created
workflow:
rules:
......@@ -27,9 +27,52 @@ build:
artifacts:
paths:
- ci_setup.sh
- bin/calibrate
- bin/feh_2s_test
- bin/commission
- bin/CMSITminiDAQ
expire_in: 1 week
## IT module
run_on_IT:
stage: run
dependencies:
- build
before_script:
- printf $USER_PASS | base64 -d | kinit $USER_NAME
- xrdcp -r root://eosuser.cern.ch//eos/user/c/cmstkph2/ci_repo/ci_tools .
script:
- source ./ci_setup.sh
- cd ci_tools
- cp CMSIT_RD53.txt CMSIT_RD53_default.txt
- CMSITminiDAQ -f CMSIT.xml -c pixelalive
- CMSITminiDAQ -f CMSIT.xml -c threqu
- CMSITminiDAQ -f CMSIT.xml -c scurve
after_script:
- cp ci_tools/Results/Run000000_PixelAlive.root .
- cp ci_tools/Results/Run000001_ThrEqualization.root .
- cp ci_tools/Results/Run000002_SCurve.root .
artifacts:
paths:
- Run000000_PixelAlive.root
- Run000001_ThrEqualization.root
- Run000002_SCurve.root
- ci_tools/plot_canvas.py
- ci_tools/CMSIT*
expire_in: 1 week
check_run_on_IT:
stage: check
needs: [run_on_IT]
script:
- python ci_tools/plot_canvas.py Run000000_PixelAlive.root "Detector/Board_0/OpticalGroup_0/Module_0/Chip_0/D_B(0)_O(0)_M(0)_PixelAlive_Chip(0)" -o plots
- python ci_tools/plot_canvas.py Run000001_ThrEqualization.root "Detector/Board_0/OpticalGroup_0/Module_0/Chip_0/D_B(0)_O(0)_M(0)_ThrEqualization_Chip(0)" -o plots
- python ci_tools/plot_canvas.py Run000002_SCurve.root "Detector/Board_0/OpticalGroup_0/Module_0/Chip_0/D_B(0)_O(0)_M(0)_SCurves_Chip(0)" -o plots
artifacts:
paths:
- plots
expire_in: 1 week
## 2S module
run_on_2S:
stage: run
dependencies:
......@@ -41,22 +84,21 @@ run_on_2S:
script:
- python ci_tools/status_manager.py 2s_status.txt --set_status 1
- source ./ci_setup.sh
- calibrate -b -f ci_tools/CMS2S.xml -n -o Results_2S/
- feh_2s_test -f ci_tools/CMS2S.xml -t -m -a --findShorts -b
after_script:
- python ci_tools/status_manager.py 2s_status.txt --set_status 0
- cp Results/*/Hybrid.root .
artifacts:
paths:
- Results_2S
- ci_tools
- Hybrid.root
- ci_tools/plot_hist.py
expire_in: 1 week
check_run_on_2S:
stage: check
dependencies:
- run_on_2S
needs: [run_on_2S]
script:
- cp Results_2S/*/*.root .
- python ci_tools/plot_hist.py PedestalEqualizationResults.root "Detector/Board_0/OpticalGroup_0/Module_0/D_B(0)_O(0)_ModuleNoiseDistribution_Module(0)" -o plots
- python ci_tools/plot_hist.py Hybrid.root "Detector/Board_0/OpticalGroup_0/Module_0/D_B(0)_O(0)_ModuleNoiseDistribution_Module(0)" -o plots
artifacts:
paths:
- plots
......
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