MTLantoine 6 years ago
parent
commit
28d69a392a
  1. 7
      .circleci/config.yml

7
.circleci/config.yml

@ -27,6 +27,13 @@ jobs:
- run: - run:
name: "Setup custom environment variables" name: "Setup custom environment variables"
command: echo 'export HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/`' command: echo 'export HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/`'
- deploy:
name: run a failing deploy
command: |
if [[ "$HTTPCODE" -ne 200 ]]; then
echo "heroku app not responding, failing deploy" \
exit 1 \
fi
lint: lint:
docker: docker:
- image: circleci/node:dubnium-browsers - image: circleci/node:dubnium-browsers

Loading…
Cancel
Save