]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
only run browserstack tests in Travis 9165/head
authorChris Rebert <code@rebertia.com>
Tue, 6 Aug 2013 07:39:35 +0000 (00:39 -0700)
committerChris Rebert <code@rebertia.com>
Tue, 6 Aug 2013 19:25:26 +0000 (12:25 -0700)
Gruntfile.js

index de5ab63345ee6c2c380390880554c4e41f221d8d..71a87bdb0a3d25beff79631acb5b662defd51c71 100644 (file)
@@ -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']);