[go: up one dir, main page]

Skip to content

Commit

Permalink
stop running browserstack tests for pull requests
Browse files Browse the repository at this point in the history
Travis refuses to expose sensitive enviroment variables to pull requests.
Therefore, the browserstack script currently fails when run from a pull request.
This commit makes travis skip the browserstack script if running in this case.

See: https://docs.travis-ci.com/user/pull-requests/#Pull-Requests-and-Security-Restrictions
  • Loading branch information
harrysarson committed May 27, 2018
1 parent 60d0f26 commit 23cfacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
env: NAME=local browser
- # second script to run in the browser-tests stage
node_js: 8
script: npm run test:browserstack
script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test:browserstack; else true; fi'
env: NAME=browserstack

0 comments on commit 23cfacc

Please sign in to comment.