From 0333a484a7ffa9d9020dfa522cd79203e75d9f32 Mon Sep 17 00:00:00 2001 From: khelia Date: Thu, 3 Dec 2020 19:57:32 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9bea1e6..29f3195 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -124,8 +124,11 @@ jobs: command: git push https://heroku:9df2d0c0-9bc3-4469-b9f2-8cb3f0702d42@git.heroku.com/salty-journey-63595.git HEAD:master - run: name: Smoke Test - command: ./test.sh - + command: 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 workflows: version: 2 build-test-and-lint: