Browse Source

🐛 Unable to parse YAML

main
tchawou-daniel 5 years ago
parent
commit
f63771ec4a
  1. 6
      .circleci/config.yml
  2. 10
      testbackend.sh

6
.circleci/config.yml

@ -63,11 +63,7 @@ jobs:
- run: - run:
name: Smoke test name: Smoke test
command: | 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
./testbackend.sh
buildandpush_dockerhub: buildandpush_dockerhub:
docker: docker:
- image: docker:17.05.0-ce-git - image: docker:17.05.0-ce-git

10
testbackend.sh

@ -1,5 +1,5 @@
#HTTPCODE=$(echo `curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles` | tr -d ' ')
#if [ "$HTTPCODE" -ne 200 ];then
# echo "heroku app not responding, failing deploy"
# exit 1
#fi
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
Loading…
Cancel
Save