Skip to content

Commit f82c085

Browse files
committedJun 1, 2018
fix(ci): do not trigger postbuild script on PR
1 parent bdfe84e commit f82c085

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ install:
4848
- if [ "$FULL_VALIDATE" == "true" ]; then npm run lint && npm run test:circular; fi
4949

5050
script:
51+
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
5152
- if [ "$FULL_VALIDATE" == "true" ] && [ -n "DANGER_GITHUB_API_TOKEN" ]; then echo {} > ./.babelrc && npx danger; fi
5253
- npm run test_check
5354
- npm test
@@ -57,4 +58,4 @@ script:
5758

5859
after_success:
5960
- if [ "$FULL_VALIDATE" == "true" ]; then npm run test:cover && npx nyc report --reporter=text-lcov | npx coveralls; fi
60-
- if [ "$FULL_VALIDATE" == "true" ] && [ "$TRAVIS_BRANCH" == "master" ]; then cd docs_app && chmod 755 scripts/deploy-to-firebase.sh && yarn deploy-production; fi
61+
- if [ "$FULL_VALIDATE" == "true" ] && [ "$BRANCH" == "master" ]; then cd docs_app && chmod 755 scripts/deploy-to-firebase.sh && yarn deploy-production; fi

0 commit comments

Comments
 (0)
Please sign in to comment.