Skip to content
Permalink
Browse files

Use retry on cURL instead of waiting up front

  • Loading branch information...
bkimminich committed Aug 29, 2019
1 parent ba9eb13 commit dd7259d9c97516f5f9b3897388880885bb3ecf09
@@ -83,7 +83,7 @@ jobs:
if: tag IS blank
os: linux
before_install:
- chmod +x test/smoke-test/smoke-test.sh
- chmod +x test/smoke/smoke-test.sh
install:
- npm install --production
- npm run package
@@ -92,7 +92,7 @@ jobs:
- tar -zxf juice-shop-*.tgz
- cd juice-shop_*
- npm start &
- ../../test/smoke-test/smoke-test.sh http://localhost:3000
- ../../test/smoke/smoke-test.sh http://localhost:3000
- stage: deploy
if: "(branch = master OR branch = develop) AND NOT type = pull_request"
os: linux
@@ -1,5 +1,5 @@
sut:
build: ./test/smoke-test/
build: ./test/smoke/
links:
- app
app:

This file was deleted.

File renamed without changes.
@@ -0,0 +1,9 @@
#!/bin/sh

if curl $1 -# --retry 4 --retry-connrefused | grep -q '<app-root></app-root>'; then
printf "\033[0;32mSmoke test passed!\033[0m"
exit 0
else
printf "\033[0;31mSmoke test failed!\033[0m"
exit 1
fi

0 comments on commit dd7259d

Please sign in to comment.
You can’t perform that action at this time.