Browse Source

♻️ refactor

main
sipe-daniel 6 years ago
parent
commit
cd733914ce
  1. 1
      .circleci/config.yml
  2. 1
      testMaster-III-TP-CD.sh

1
.circleci/config.yml

@ -9,7 +9,6 @@ jobs:
- restore_cache: - restore_cache:
keys: keys:
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }} - dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
# fallback to using the latest cache if no exact match is found
- dependencies- - dependencies-
- run: yarn global add node-gyp && yarn install - run: yarn global add node-gyp && yarn install
- save_cache: - save_cache:

1
testMaster-III-TP-CD.sh

@ -1,5 +1,4 @@
HTTPCODE=$(echo `curl -s -o /dev/null -w "%{http_code}" https://whispering-garden-62583.herokuapp.com/` | tr -d ' ') HTTPCODE=$(echo `curl -s -o /dev/null -w "%{http_code}" https://whispering-garden-62583.herokuapp.com/` | tr -d ' ')
#statements
if [ "$HTTPCODE" -ne 200 ];then if [ "$HTTPCODE" -ne 200 ];then
echo "heroku app not responding, failing deploy" echo "heroku app not responding, failing deploy"
exit 1 exit 1

Loading…
Cancel
Save