From cdc92e8139a89e93579c5d340ec27fe66e5f6e8e Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 6 Aug 2013 00:39:35 -0700 Subject: [PATCH] only run browserstack tests in Travis --- Gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index de5ab63345..71a87bdb0a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -129,7 +129,11 @@ module.exports = function(grunt) { // Test task. - grunt.registerTask('test', ['jshint', 'qunit', 'browserstack_runner']); + var testSubtasks = ['jshint', 'qunit']; + if (process.env.TRAVIS) { + testSubtasks.push('browserstack_runner'); + } + grunt.registerTask('test', testSubtasks); // JS distribution task. grunt.registerTask('dist-js', ['concat', 'uglify']);