diff --git a/.circleci/config.yml b/.circleci/config.yml index 3dc5928..f781580 100644 --- a/.circleci/config.yml +++ b/.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: diff --git a/test_heroku.sh b/test_heroku.sh deleted file mode 100755 index 878a5b2..0000000 --- a/test_heroku.sh +++ /dev/null @@ -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 \ No newline at end of file