Tweak pull_request detection in saucelabs.js.

This commit is contained in:
John-David Dalton
2013-11-05 21:17:42 -08:00
parent e9c8137fd8
commit 06d12b376c

View File

@@ -16,7 +16,7 @@
accessKey = process.env.SAUCE_ACCESS_KEY,
tunnelId = 'lodash_' + process.env.TRAVIS_JOB_NUMBER;
if (!accessKey) {
if (isFinite(process.env.TRAVIS_PULL_REQUEST)) {
console.error('Testing skipped for pull requests');
process.exit(0);
}