From fc71590c6e15433f3b92257da68c10e815134f72 Mon Sep 17 00:00:00 2001 From: Gautier couture <2017566295@lacatholille.fr> Date: Tue, 1 Dec 2020 15:40:32 +0100 Subject: [PATCH] edit config --- .circleci/config.yml | 4 ++-- test_hiroku.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 test_hiroku.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index dd8f9d1..8cad685 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,10 +121,10 @@ jobs: - checkout - run: name: Heroku Deploy - command: echo todo && false + command: heroku open - run: name: Smoke Test - command: echo todo && false + command: ./heroku_test.sh workflows: version: 2 diff --git a/test_hiroku.sh b/test_hiroku.sh new file mode 100644 index 0000000..7d05b47 --- /dev/null +++ b/test_hiroku.sh @@ -0,0 +1,6 @@ +HEROKU_APP_NAME="evening-cove-68662" +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 \ No newline at end of file