Skip to content

Commit 9d4bd11

Browse files
committed
disable sauce for pull requests
1 parent 6a4d08a commit 9d4bd11

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Gruntfile.coffee

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ module.exports = (grunt) ->
7878
grunt.registerTask "server", ["connect:demo"]
7979
grunt.registerTask "test", ["jshint", "qunit"]
8080
grunt.registerTask "sauce", ["connect:sauce", "saucelabs-qunit"]
81-
grunt.registerTask "travis", ["test", "sauce"]
81+
if parseInt(process.env.TRAVIS_PULL_REQUEST, 10) > 0
82+
# saucelab keys do not work on forks
83+
# http://support.saucelabs.com/entries/25614798
84+
grunt.registerTask "travis", ["test"]
85+
else
86+
grunt.registerTask "travis", ["test", "sauce"]
8287
grunt.registerTask "default", ["test"]
8388

8489
# "sauce",

0 commit comments

Comments
 (0)