diff --git a/.circleci/config.yml b/.circleci/config.yml index dd8f9d1..b8231ae 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,10 +121,10 @@ jobs: - checkout - run: name: Heroku Deploy - command: echo todo && false + command: git push heroku main - run: name: Smoke Test - command: echo todo && false + command: ./test.sh workflows: version: 2 diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..afc166b --- /dev/null +++ b/test.sh @@ -0,0 +1,6 @@ +HEROKU_APP_NAME="morning-mountain-84049" +HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/` +if [ "$HTTPCODE" -ne 200 ];then + echo "heroku app not responding, failing deploy" + exit 1 +fi