only run browserstack tests in Travis

This commit is contained in:
Chris Rebert 2013-08-06 00:39:35 -07:00
parent 093cda244a
commit cdc92e8139
1 changed files with 5 additions and 1 deletions

View 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']);