mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added tests to ghost release process (#10613)
no issue - acceptance tests run on each build - regression tests run once per day - if we do a release, we have to ensure that we run all tests - reduces the risk of releasing a new version with broken regression tests
This commit is contained in:
parent
8fd2e03ebf
commit
2764ed9ee3
1 changed files with 9 additions and 2 deletions
11
Gruntfile.js
11
Gruntfile.js
|
@ -639,6 +639,7 @@ const configureGrunt = function (grunt) {
|
||||||
grunt.registerTask('release',
|
grunt.registerTask('release',
|
||||||
'Release task - creates a final built zip\n' +
|
'Release task - creates a final built zip\n' +
|
||||||
' - Do our standard build steps \n' +
|
' - Do our standard build steps \n' +
|
||||||
|
' - Run all tests(acceptance + regression + unit) \n' +
|
||||||
' - Copy files to release-folder/#/#{version} directory\n' +
|
' - Copy files to release-folder/#/#{version} directory\n' +
|
||||||
' - Clean out unnecessary files (travis, .git*, etc)\n' +
|
' - Clean out unnecessary files (travis, .git*, etc)\n' +
|
||||||
' - Zip files in release-folder to dist-folder/#{version} directory',
|
' - Zip files in release-folder to dist-folder/#{version} directory',
|
||||||
|
@ -662,8 +663,14 @@ const configureGrunt = function (grunt) {
|
||||||
dest: 'core/server/web/admin/views/default.html'
|
dest: 'core/server/web/admin/views/default.html'
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
if (!grunt.option('skip-tests')) {
|
||||||
grunt.task.run(['update_submodules:pinned', 'subgrunt:init', 'clean:built', 'clean:tmp', 'prod', 'clean:release', 'copy:admin_html', 'copy:release', 'compress:release']);
|
grunt.task.run(['update_submodules:pinned', 'subgrunt:init', 'test-all', 'clean:built', 'clean:tmp', 'prod', 'clean:release', 'copy:admin_html', 'copy:release', 'compress:release']);
|
||||||
|
} else {
|
||||||
|
grunt.log.writeln(chalk.red(
|
||||||
|
chalk.bold('Skipping tests...')
|
||||||
|
));
|
||||||
|
grunt.task.run(['update_submodules:pinned', 'subgrunt:init', 'clean:built', 'clean:tmp', 'prod', 'clean:release', 'copy:admin_html', 'copy:release', 'compress:release']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue