Simplify testem logic and remove console logging

This commit is contained in:
Curtis Ekstrom 2016-04-12 23:04:08 +02:00
parent 8cd14b8952
commit 8de13d1949
No known key found for this signature in database
GPG Key ID: CDE831E4F18FEB65

View File

@ -1,16 +1,11 @@
/*jshint node:true*/ /*jshint node:true*/
var launchInCI = function() { var launchInCI = function() {
if (process.env.TRAVIS) { if (!process.env.TRAVIS || process.env.TRAVIS_PULL_REQUEST) {
if (process.env.TRAVIS_PULL_REQUEST) {
console.log('will run with phantom');
return ['PhantomJS']; return ['PhantomJS'];
} else { } else {
return ['SL_chrome', 'SL_firefox']; return ['SL_chrome', 'SL_firefox'];
} }
} else {
return ['PhantomJS'];
}
}; };
module.exports = { module.exports = {