Browse Source

🚧 test

dependabot/pip/requirements/sqlalchemy-1.3.0
spokequenouille 6 years ago
parent
commit
2d16e4e845
  1. 24
      .circleci/config.yml

24
.circleci/config.yml

@ -43,11 +43,33 @@ jobs:
. venv/bin/activate . venv/bin/activate
flask db upgrade flask db upgrade
flask test flask test
deploy-heroku:
docker:
- image : buildpack-deps:trusty
steps:
- checkout
- run:
name: Deploy main to heroku
command: |
git config --global push.default matching
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main
- run:
name: Smoke test
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 deploy"
exit 1
fi
workflows: workflows:
build_test_deploy: build_test_deploy:
jobs: jobs:
- build - build
- test:
#- test:
# requires:
# - build
- deploy-heroku:
context: Heroku
requires: requires:
- build - build
Loading…
Cancel
Save