From f51afbf445fb2f7c99dde2de88db5098fe5e6ffb Mon Sep 17 00:00:00 2001 From: Louis Dutoit Date: Tue, 1 Dec 2020 16:49:16 +0100 Subject: [PATCH] smoke test --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd8f9d1..42fa0d6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -121,11 +121,15 @@ jobs: - checkout - run: name: Heroku Deploy - command: echo todo && false + command: git push https://heroku:f11ddde7-1bdf-4e9d-b8ad-da4e0ff59c25@git.heroku.com/morning-island-14161.git HEAD:master - run: name: Smoke Test - command: echo todo && false - + command: | + if [[ "$HTTPCODE" -ne 200 ]]; then + echo "heroku app not responding, failing deploy" \ + exit 1 \ + HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://morning-island-14161.herokuapp.com/` + workflows: version: 2 build-test-and-lint: