diff --git a/grunt/config/prompt.js b/grunt/config/prompt.js index d82a989cd..0f5d52bc3 100644 --- a/grunt/config/prompt.js +++ b/grunt/config/prompt.js @@ -233,6 +233,54 @@ module.exports = function (grunt) { } } }, + 'rannpminstall': { + options: { + questions: [ + { + config: 'release.rannpminstall', + type: 'confirm', + message: 'Have you run `npm install && bower install`?' + } + ], + then: function (answers, done) { + if (answers['release.rannpminstall'] === false) { + grunt.fail.fatal('Please run `npm install && bower install`', 1); + } + } + } + }, + 'rangrunttest': { + options: { + questions: [ + { + config: 'release.rangrunttest', + type: 'confirm', + message: 'Have you run grunt test, and have all tests passed?' + } + ], + then: function (answers, done) { + if (answers['release.rangrunttest'] === false) { + grunt.fail.fatal('Please run `grunt test`, and make sure all tests pass', 1); + } + } + } + }, + 'ransauce': { + options: { + questions: [ + { + config: 'release.ransauce', + type: 'confirm', + message: 'Have you run `grunt saucelabs`, and have all tests passed?' + } + ], + then: function (answers, done) { + if (answers['release.ransauce'] === false) { + grunt.fail.fatal('Please run `grunt saucelabs`, and make sure all tests pass', 1); + } + } + } + }, 'createmilestone': { options: { questions: [ diff --git a/grunt/tasks/release.js b/grunt/tasks/release.js index 2564ab641..ab8aea573 100644 --- a/grunt/tasks/release.js +++ b/grunt/tasks/release.js @@ -47,6 +47,9 @@ module.exports = function (grunt) { grunt.task.run( [ 'prompt:logoffvpn', + 'prompt:rannpminstall', + 'prompt:rangrunttest', + 'prompt:ransauce', 'prompt:createmilestone', 'prompt:bumpmilestones', 'prompt:closemilestone',