Running samples only for meta release

This commit is contained in:
Marcin Grzejszczak
2018-10-23 16:15:16 +02:00
parent f82fce0e7c
commit 9874345551
4 changed files with 17 additions and 4 deletions

View File

@@ -39,7 +39,8 @@ public class PostReleaseActions {
* @param projects - set of project with versions to assert agains
*/
public void runUpdatedTests(Projects projects) {
if (!this.properties.getGit().isRunUpdatedSamples()) {
if (!this.properties.getGit().isRunUpdatedSamples() ||
!this.properties.getMetaRelease().isEnabled()) {
log.info("Will not update and run test samples, since the switch to do so "
+ "is off. Set [releaser.git.run-updated-samples] to [true] to change that");
return;