Files
faveo/public/lb-faveo/plugins/moment-develop/tasks/check_sauce_creds.js
2016-01-27 19:46:55 +05:30

14 lines
578 B
JavaScript
Vendored

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');
}
});
};