From 63b042994174fe8ec2678b2e117501fb341c1764 Mon Sep 17 00:00:00 2001 From: guidezSeb Date: Mon, 18 Jan 2021 16:43:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20restaure=20espace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2d03c39..93aeebd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,6 +27,7 @@ jobs: name: Install requirements command: pip install -r requirements/dev.txt + - save_cache: key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} paths: @@ -72,8 +73,10 @@ jobs: - run: name: Deploy main to heroku command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main + + - run: - name: Smoke test + name: Smoke test check command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles`; if [[ "$HTTPCODE" -ne 200 ]];then echo "heroku app not responding, failing to deploy" && exit 1;