Browse Source

🔧 modif smoke test

main
Tristan 6 years ago
parent
commit
7450e9fbdb
  1. 6
      .circleci/config.yml
  2. 8
      test_heroku.sh

6
.circleci/config.yml

@ -56,7 +56,11 @@ jobs:
- run:
name: Smoke test
command: |
./test_heroku.sh
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles`
if [ "$HTTPCODE" -ne 200 ];then
echo "heroku app not responding, failing deploy"
exit 1
fi
docker-build-push:
working_directory: /dockerapp
docker:

8
test_heroku.sh

@ -1,8 +0,0 @@
#!/bin/bash
HEROKU_APP_NAME="calm-crag-04725"
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles`
if [ "$HTTPCODE" -ne 200 ];then
echo "heroku app not responding, failing deploy"
exit 1
fi
Loading…
Cancel
Save