Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Add an integration test to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Apr 14, 2016
1 parent fb1f152 commit 2bb39f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions test/run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2bb39f6

Please sign in to comment.