diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7be2a15eca5858dc24c2bce23cba9347f05327b7..66412f1c198971c2e135a50e65640996c9570c05 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,12 +11,10 @@ default: stages: - init - - config - generate - process - analyze - collect - - cleanup - finish detector: diff --git a/dvmp/config.yml b/dvmp/config.yml index bd7b4eabd12ae2adebd320af5e6d208f68195a76..e71cea7d65f75158d73fb63b2365e0a2aecc289e 100644 --- a/dvmp/config.yml +++ b/dvmp/config.yml @@ -1,27 +1,61 @@ -dvmp:dummy_test: - stage: analyze - needs: ["detector"] +dvmp:jpsi_central:generate: + stage: generate + needs: [] timeout: 1 hours + cache: + key: + files: + - dvmp/generator/jpsi_central.json + prefix: "$CI_COMMIT_REF_SLUG" + paths: + - results/dvmp + script: + - echo "stub for generator" + - mkdir -p results/dvmp + - touch results/dvmp/event-stub + +dvmp:jpsi_central:process: + stage: process + needs: ["detector", "dvmp:jpsi_central:generate"] + dependencies: + - detector + - dvmp:jpsi_central:generate + timeout: 1 hour + script: + - echo "Running the detector simulation" + - touch results/dvmp/sim-stub + - echo "Running the reconstruction" + - touch results/dvmp/rec-stub + +dvmp:jpsi_central:dummy_test: + stage: analyze + needs: ["dvmp:jpsi_central:process"] + dependencies: + - dvmp:jpsi_central:process script: - dvmp/dummy_test.sh -dvmp:dummy_test2: +dvmp:jpsi_central:dummy_test2: stage: analyze - needs: ["detector"] - timeout: 1 hours + needs: ["dvmp:jpsi_central:process"] + dependencies: + - dvmp:jpsi_central:process script: - dvmp/dummy_test2.sh -dvmp:dummy_fail_test: +dvmp:jpsi_central:dummy_fail_test: stage: analyze - needs: ["detector"] - timeout: 1 hours + needs: ["dvmp:jpsi_central:process"] + dependencies: + - dvmp:jpsi_central:process allow_failure: true script: - dvmp/dummy_fail_test.sh dvmp:results: stage: collect - needs: ["dvmp:dummy_test", "dvmp:dummy_test2", "dvmp:dummy_fail_test"] + needs: ["dvmp:jpsi_central:dummy_test", + "dvmp:jpsi_central:dummy_test2", + "dvmp:jpsi_central:dummy_fail_test"] script: - - echo "All DIS benchmarks successful" + - echo "All DVMP benchmarks successful" diff --git a/dvmp/generator/jpsi_central.json b/dvmp/generator/jpsi_central.json new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391