Skip to content

Commit

Permalink
don't run SauceLabs tests on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed May 23, 2016
1 parent 0b1e9b3 commit 0dde0fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ module.exports = function(config) {
// TO RUN LOCALLY:
// Execute `CI=1 make test-browser`, once you've set the SAUCE_USERNAME and
// SAUCE_ACCESS_KEY env vars.
if (process.env.CI) {
// also, we can't run SauceLabs tests on PRs from forks.
if (process.env.CI && !process.env.TRAVIS_PULL_REQUEST) {
if (!(process.env.SAUCE_USERNAME || process.env.SAUCE_ACCESS_KEY)) {
throw new Error('Must set SAUCE_USERNAME and SAUCE_ACCESS_KEY '
+ 'environment variables!');
Expand Down

0 comments on commit 0dde0fa

Please sign in to comment.