Browse Source

fonctionnestp

main
spokequenouille 6 years ago
parent
commit
7607585d3e
  1. 2
      .circleci/config.yml
  2. 1
      test.sh

2
.circleci/config.yml

@ -101,7 +101,7 @@ jobs:
- checkout
- run:
name: Heroku Deploy
command: git push https://heroku:82c54f90-3acc-4ec5-80d0-d4931333e21d@git.heroku.com/limitless-reaches-59900.git HEAD:master
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master
- run:
name: Smoke Test
command: ./test.sh

1
test.sh

@ -1,6 +1,5 @@
#! /bin/bash
HEROKU_APP_NAME="limitless-reaches-59900"
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"

Loading…
Cancel
Save