From 2cef5089b691a40392159930212f2b83a3dc4959 Mon Sep 17 00:00:00 2001 From: Francois Lannoy Date: Tue, 1 Dec 2020 14:52:09 +0100 Subject: [PATCH] circleci : removed docker publish and added smoke test --- .circleci/config.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd8f9d1..eb4653c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -124,7 +124,12 @@ jobs: command: echo todo && false - run: name: Smoke Test - command: echo todo && false + 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 @@ -140,15 +145,6 @@ workflows: - lint: requires: - build - - docker-build-and-push: - requires: - - build - - lint - - back-test-e2e - - back-test-unit - filters: - branches: - only: main - back-deploy-heroku: requires: - build