check_sauce_creds.js 579 B

123456789101112131415
  1. module.exports = function (grunt) {
  2. // Pull Requests do not have secure variables enabled for security reasons.
  3. // Use this task before launching travis-sauce-browser task, so it would
  4. // exit early and won't try connecting to saucelabs without credentials.
  5. grunt.registerTask('check-sauce-creds', function () {
  6. if (process.env.SAUCE_USERNAME === undefined) {
  7. grunt.log.writeln("No sauce credentials found");
  8. grunt.task.clearQueue();
  9. } else {
  10. grunt.log.writeln("Sauce credentials found");
  11. }
  12. });
  13. };