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

Added dis to not allow failure

	modified:   .gitlab-ci.yml
	modified:   bin/gen_ci_config
	new file:   dis/dummy_fail_test.sh
	new file:   dis/dummy_test.sh
	new file:   dis/dummy_test2.sh
parent 76cde332
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ generate_config: ...@@ -37,7 +37,7 @@ generate_config:
- sodium - sodium
script: script:
- mkdir -p config && ./bin/gen_ci_config -p test_ -i dummy > config/dummy_config.yml - mkdir -p config && ./bin/gen_ci_config -p test_ -i dummy > config/dummy_config.yml
- mkdir -p config && ./bin/gen_ci_config -p dis_ -i dis > config/dis_config.yml - mkdir -p config && ./bin/gen_ci_config --no-failure -p dis_ -i dis > config/dis_config.yml
child-pipeline: child-pipeline:
stage: run stage: run
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
set -o nounset set -o nounset
set -o errexit set -o errexit
CI_TAG=sodium
BENCHMARK_SCRIPT_DIR=./dummy BENCHMARK_SCRIPT_DIR=./dummy
CI_TAG=sodium
CI_JOB_PREFIX=test_ CI_JOB_PREFIX=test_
CI_FAILURE="true"
function print_the_help { function print_the_help {
echo "USAGE: $0 [-t <runner_tag>] " echo "USAGE: $0 [-t <runner_tag>] "
...@@ -12,6 +13,7 @@ function print_the_help { ...@@ -12,6 +13,7 @@ function print_the_help {
echo " -i,--input Input scripts directory " echo " -i,--input Input scripts directory "
echo " -t,--tag Gitlab Runner tag" echo " -t,--tag Gitlab Runner tag"
echo " -p,--prefix job name prefix" echo " -p,--prefix job name prefix"
echo " --no-failure do not allow failures"
exit exit
} }
...@@ -39,6 +41,10 @@ do ...@@ -39,6 +41,10 @@ do
shift # past argument shift # past argument
shift # past value shift # past value
;; ;;
--no-failure)
CI_FAILURE="false"
shift # past argument
;;
*) # unknown option *) # unknown option
#POSITIONAL+=("$1") # save it in an array for later #POSITIONAL+=("$1") # save it in an array for later
echo "unknown option $1" echo "unknown option $1"
...@@ -71,7 +77,7 @@ ${CI_JOB_PREFIX}${ifile}_${filename_noext}: ...@@ -71,7 +77,7 @@ ${CI_JOB_PREFIX}${ifile}_${filename_noext}:
stage: benchmarks stage: benchmarks
script: script:
- bash ${script_name} - bash ${script_name}
allow_failure: true allow_failure: ${CI_FAILURE}
EOF EOF
done done
...@@ -88,7 +94,7 @@ ${CI_JOB_PREFIX}${ifile}_${filename_noext}: ...@@ -88,7 +94,7 @@ ${CI_JOB_PREFIX}${ifile}_${filename_noext}:
stage: benchmarks stage: benchmarks
script: script:
- root -b -q ${script_name} - root -b -q ${script_name}
allow_failure: true allow_failure: ${CI_FAILURE}
EOF EOF
done done
......
#!/bin/bash
echo "Dummy Test..."
echo "..."
echo "Fails!"
exit 1
#!/bin/bash
echo "Dummy Test..."
echo "..."
echo "Passes!"
#exit 1
#!/bin/bash
echo "Dummy Test number 2..."
echo "..."
echo "Passes!"
#exit 1
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