colorize phantom message

This commit is contained in:
Joe Fleming 2014-09-16 14:16:36 -07:00
parent 26465733cd
commit 95e7339a38
2 changed files with 4 additions and 2 deletions

View file

@ -38,5 +38,5 @@ module.exports = function (grunt) {
});
// load task definitions
grunt.loadTasks('tasks');
grunt.task.loadTasks('tasks');
};

View file

@ -5,7 +5,9 @@ module.exports = function (grunt) {
grunt.registerTask('test', function () {
var testTask = 'mocha:unit';
if (process.env.TRAVIS && !process.env.SAUCE_ACCESS_KEY) {
grunt.log.writeln('SAUCE_ACCESS_KEY not set in env, running with Phantom');
grunt.log.writeln(grunt.log.wordlist([
'>> SAUCE_ACCESS_KEY not set in env, running with Phantom'
], {color: 'yellow'}));
} else {
testTask = 'saucelabs-mocha:unit';
}