mirror of
https://github.com/lancachenet/monolithic
synced 2024-11-22 03:53:06 +00:00
Inverted deprecation check
This commit is contained in:
parent
bf361ef18b
commit
42600bd00d
2 changed files with 23 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -z "${CACHE_DOMAIN_REPO}" ]]; then
|
||||
if [[ ! -z "${CACHE_DOMAIN_REPO}" ]]; then
|
||||
|
||||
echo "ERROR: CACHE_DOMAIN_REPO environment variable has be deprecated in favour of CACHE_DOMAINS_REPO. Please update your config"
|
||||
exit 1
|
||||
|
|
22
run-tests.sh
22
run-tests.sh
|
@ -8,6 +8,8 @@ if [ $? -ne 0 ]; then
|
|||
exit $?
|
||||
fi
|
||||
|
||||
GOSS_WAIT_OPS="-r 60s -s 1s"
|
||||
|
||||
docker build --tag lancachenet/monolithic:goss-test .
|
||||
case $1 in
|
||||
circleci)
|
||||
|
@ -26,6 +28,26 @@ case $1 in
|
|||
#remove invalid system-err outputs from junit output so circleci can read it
|
||||
sed -i '/<system-err>.*<\/system-err>/d' reports/goss/report.xml
|
||||
;;
|
||||
docker)
|
||||
shift;
|
||||
if [[ "$1" == "keepimage" ]]; then
|
||||
KEEPIMAGE=true
|
||||
shift
|
||||
fi
|
||||
docker run --name monolithic-goss-test $@ lancachenet/monolithic:goss-test
|
||||
docker stop monolithic-goss-test
|
||||
docker rm monolithic-goss-test
|
||||
RESULT=$?
|
||||
;;
|
||||
edit)
|
||||
shift;
|
||||
if [[ "$1" == "keepimage" ]]; then
|
||||
KEEPIMAGE=true
|
||||
shift
|
||||
fi
|
||||
dgoss edit $@ lancachenet/monolithic:goss-test
|
||||
RESULT=$?
|
||||
;;
|
||||
*)
|
||||
if [[ "$1" == "keepimage" ]]; then
|
||||
KEEPIMAGE=true
|
||||
|
|
Loading…
Reference in a new issue