mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fix sauce runner conditional, allow override with flag
This commit is contained in:
parent
1cae258cd2
commit
f163fce4f0
1 changed files with 9 additions and 7 deletions
|
@ -1,15 +1,17 @@
|
|||
var _ = require('lodash');
|
||||
module.exports = function (grunt) {
|
||||
|
||||
|
||||
grunt.registerTask('test', function () {
|
||||
var testTask = 'mocha:unit';
|
||||
if (process.env.TRAVIS && !process.env.SAUCE_ACCESS_KEY) {
|
||||
grunt.log.writeln(grunt.log.wordlist([
|
||||
'>> SAUCE_ACCESS_KEY not set in env, running with Phantom'
|
||||
], {color: 'yellow'}));
|
||||
} else {
|
||||
testTask = 'saucelabs-mocha:unit';
|
||||
|
||||
if (grunt.option('use-sauce') || process.env.TRAVIS) {
|
||||
if (!process.env.SAUCE_ACCESS_KEY) {
|
||||
grunt.log.writeln(grunt.log.wordlist([
|
||||
'>> SAUCE_ACCESS_KEY not set in env, running with Phantom'
|
||||
], {color: 'yellow'}));
|
||||
} else {
|
||||
testTask = 'saucelabs-mocha:unit';
|
||||
}
|
||||
}
|
||||
|
||||
var tasks = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue