From 0dde0fadbbb308e88a8859eefc4c9e9ea9254b9e Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Sun, 22 May 2016 22:56:56 -0700 Subject: [PATCH] don't run SauceLabs tests on PRs --- karma.conf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index 00152bc65d..4db4ac4d24 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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!');