mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Removed testing step from Grunt release task
no issue
This commit is contained in:
parent
9cf4312ae2
commit
f5bf2673be
25
Gruntfile.js
25
Gruntfile.js
@ -717,10 +717,7 @@ const configureGrunt = function (grunt) {
|
|||||||
.catch(done);
|
.catch(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('automated-release', function () {
|
grunt.registerTask('automated-release', ['release', 'changelog', 'gist', 'draftRelease', 'uploadGitHub']);
|
||||||
grunt.option('skip-tests', true);
|
|
||||||
grunt.task.run(['release', 'changelog', 'gist', 'draftRelease', 'uploadGitHub']);
|
|
||||||
});
|
|
||||||
|
|
||||||
// ### Release
|
// ### Release
|
||||||
// Run `grunt release` to create a Ghost release zip file.
|
// Run `grunt release` to create a Ghost release zip file.
|
||||||
@ -730,7 +727,6 @@ 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',
|
||||||
@ -755,15 +751,16 @@ const configureGrunt = function (grunt) {
|
|||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.task.run(['update_submodules:pinned', 'subgrunt:init']);
|
grunt.task
|
||||||
|
.run('update_submodules:pinned')
|
||||||
if (grunt.option('skip-tests')) {
|
.run('subgrunt:init')
|
||||||
grunt.log.writeln(chalk.red(chalk.bold('Skipping tests...')));
|
.run('clean:built')
|
||||||
} else {
|
.run('clean:tmp')
|
||||||
grunt.task.run('test-all');
|
.run('prod')
|
||||||
}
|
.run('clean:release')
|
||||||
|
.run('copy:admin_html')
|
||||||
grunt.task.run(['clean:built', 'clean:tmp', 'prod', 'clean:release', 'copy:admin_html', 'copy:release', 'compress:release']);
|
.run('copy:release')
|
||||||
|
.run('compress:release');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user