Stop doing tests on pull requests because they're always going to fail

This commit is contained in:
Caleb James DeLisle 2017-01-12 17:58:12 +01:00
parent 52d5821be0
commit a8ba798203
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
/* global process */
var WebDriver = require("selenium-webdriver");
if (process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false') {
// We can't do saucelabs on pull requests so don't fail.
return;
}
var driver;
if (process.env.SAUCE_USERNAME !== undefined) {
var browserArray = process.env.BROWSER.split(':');