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

modified: ../.gitignore

	modified:   ../.gitlab-ci.yml
	modified:   ../README.md
	new file:   gen_ci_config
parent db129162
No related branches found
No related tags found
No related merge requests found
results/* results/*
data/* data/*
datasets/* datasets/*
data
...@@ -6,6 +6,9 @@ default: ...@@ -6,6 +6,9 @@ default:
- results/ - results/
- datasets/ - datasets/
- data - data
# exclude:
# - .git/
# - datasets/.git/
stages: stages:
......
Benchmarks for NPDet Benchmarks for NPDet
==================== ====================
## Adding new benchmarks
### Pass/Fail tests
- Create a script that returns exit status 0 for success.
- Any non-zero value will be considered failure.
- Script
#!/bin/bash
set -o nounset
set -o errexit
CI_TAG=sodium
function print_the_help {
echo "USAGE: $0 [-t <runner_tag>] "
echo " OPTIONS: "
echo " -t,--tag Gitlab Runner tag"
exit
}
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-h|--help)
shift # past argument
print_the_help
;;
-t|--tag)
CI_TAG="$2"
shift # past argument
shift # past value
;;
*) # unknown option
#POSITIONAL+=("$1") # save it in an array for later
echo "unknown option $1"
print_the_help
shift # past argument
;;
esac
done
set -- "${POSITIONAL[@]}" # restore positional parameters
cat <<EOF
cal_test1:
stage: detectors
tags:
- ${CI_TAG}
script:
- bash calorimeters/dummy_test.sh
allow_failure: true
cal_test2:
stage: detectors
tags:
- ${CI_TAG}
script:
- root -b -q calorimeters/zdc_neutrons_reader.cxx
allow_failure: true
EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment