Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
() adds more release prereq prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher McCulloh committed Nov 7, 2016
1 parent 1679a38 commit 9fbb3d0
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
48 changes: 48 additions & 0 deletions grunt/config/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
3 changes: 3 additions & 0 deletions grunt/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9fbb3d0

Please sign in to comment.