aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gruntfile.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index de5ab6334..71a87bdb0 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']);