forked from moment/moment
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PRs now pass travis build, because they don't execute sauce tests
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = function (grunt) { | ||
|
||
// Pull Requests do not have secure variables enabled for security reasons. | ||
// Use this task before launching travis-sauce-browser task, so it would | ||
// exit early and won't try connecting to saucelabs without credentials. | ||
grunt.registerTask('check-sauce-creds', function () { | ||
if (process.env.SAUCE_USERNAME === undefined) { | ||
grunt.log.writeln("No sauce credentials found"); | ||
grunt.task.clearQueue(); | ||
} else { | ||
grunt.log.writeln("Sauce credentials found"); | ||
} | ||
}); | ||
}; |