diff --git a/.travis.yml b/.travis.yml index cb0d8e9..638dbed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,10 @@ before_script: script: - docker build -t "$image" . - ~/official-images/test/run.sh "$image" - - if [ -f onbuild/Dockerfile ]; then docker build -t "${image}-onbuild" onbuild; fi + - $TRAVIS_BUILD_DIR/test/run.sh "$image" + - if [ -f onbuild/Dockerfile ]; then docker build -t "$image-onbuild" onbuild; fi - if [ -f onbuild/Dockerfile ]; then ~/official-images/test/run.sh "$image-onbuild"; fi + - if [ -f onbuild/Dockerfile ]; then $TRAVIS_BUILD_DIR/test/run.sh "$image-onbuild"; fi after_script: - docker images diff --git a/test/run.sh b/test/run.sh new file mode 100755 index 0000000..c2e5a9a --- /dev/null +++ b/test/run.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e + +docker run --rm \ + -e SENTRY_SKIP_BACKEND_VALIDATION=1 \ + -e SENTRY_SECRET_KEY=abc \ + -e SENTRY_REDIS_HOST=localhost \ + "$1" config get system.secret-key