Skip to content
Snippets Groups Projects

Resolve "Clean up environment setup"

Merged Whitney Armstrong requested to merge 26-clean-up-environment-setup into master
15 files
+ 1
7556
Compare changes
  • Side-by-side
  • Inline
Files
15
  • ce02a846
    modified: .gitignore · ce02a846
    Whitney Armstrong authored
    	deleted:    bin/gen_ci_config
    	deleted:    include/benchmark.h
    	deleted:    include/clipp.h
    	deleted:    include/exception.h
    	deleted:    include/mt.h
    	deleted:    include/plot.h
    	deleted:    include/util.h
    	deleted:    util/build_detector.sh
    	deleted:    util/collect_benchmarks.py
    	deleted:    util/collect_tests.py
    	deleted:    util/compile_analyses.py
    	deleted:    util/parse_cmd.sh
    	deleted:    util/print_env.sh
    	deleted:    util/run_many.py
+ 0
108
#!/bin/bash
set -o nounset
set -o errexit
BENCHMARK_SCRIPT_DIR=./dummy
CI_TAG=silicon
CI_JOB_PREFIX=test_
CI_FAILURE="true"
function print_the_help {
echo "USAGE: $0 [-t <runner_tag>] "
echo " OPTIONS: "
echo " -i,--input Input scripts directory "
echo " -t,--tag Gitlab Runner tag"
echo " -p,--prefix job name prefix"
echo " --no-failure do not allow failures"
exit
}
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-h|--help)
shift # past argument
print_the_help
;;
-i|--input)
BENCHMARK_SCRIPT_DIR="$2"
shift # past argument
shift # past value
;;
-t|--tag)
CI_TAG="$2"
shift # past argument
shift # past value
;;
-p|--prefix)
CI_JOB_PREFIX="$2"
shift # past argument
shift # past value
;;
--no-failure)
CI_FAILURE="false"
shift # past argument
;;
*) # 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
shopt -s nullglob
ifile=0
cat <<EOF
default:
timeout: 12 hours 30 minutes
artifacts:
expire_in: 20 weeks
paths:
- results/
stages:
- benchmarks
EOF
for script_name in ${BENCHMARK_SCRIPT_DIR}/*.sh
do
filename=$(basename ${script_name})
filename_noext="${filename%%.*}"
ifile=$((ifile+1))
cat <<EOF
${CI_JOB_PREFIX}${ifile}_${filename_noext}:
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:\$JUGGLER_TAG
tags:
- ${CI_TAG}
stage: benchmarks
script:
- bash ${script_name}
allow_failure: ${CI_FAILURE}
EOF
done
for script_name in ${BENCHMARK_SCRIPT_DIR}/*.cxx
do
filename=$(basename ${script_name})
filename_noext="${filename%%.*}"
ifile=$((ifile+1))
cat <<EOF
${CI_JOB_PREFIX}${ifile}_${filename_noext}:
image: eicweb.phy.anl.gov:4567/eic/juggler/juggler:\$JUGGLER_TAG
tags:
- ${CI_TAG}
stage: benchmarks
script:
- root -b -q ${script_name}
allow_failure: ${CI_FAILURE}
EOF
done
Loading