소스 검색

Make deploys fatal only in master/non-prs

Kevin van Zonneveld 9 년 전
부모
커밋
46fcb5153e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .travis.yml

+ 1 - 1
.travis.yml

@@ -14,7 +14,7 @@ script:
   # Don't do this in `after_success`, because then failures won't bubble up
   # Don't do this in `after_success`, because then failures won't bubble up
   - git config --global user.name 'Uppy Bot'
   - git config --global user.name 'Uppy Bot'
   - git config --global user.email 'uppybot@uppyjs.io'
   - git config --global user.email 'uppybot@uppyjs.io'
-  - test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && npm run web:deploy
+  - if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "master" ]; then npm run web:deploy; else echo "Skipping for non-master/prs"; fi
 
 
 env:
 env:
   global:
   global: