Skip to content

Commit 95a1e3b

Browse files
authored
Merge pull request #83 from gdgib/G2-1870-SkipTests
G2-1870 Skip tests during release install
2 parents 12b414f + edf3a0e commit 95a1e3b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

bd-build/src/main/java/com/g2forge/bulldozer/build/Release.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public IExit invoke() throws Throwable {
270270
// Check out the recent tag using jgit
271271
project.checkoutTag(project.getReleaseProperties().getTag());
272272
// Maven install (stream stdio to the console) the newly created release version
273-
getContext().getMaven().install(project.getDirectory(), IMaven.PROFILES_RELEASE);
273+
getContext().getMaven().install(project.getDirectory(), true, IMaven.PROFILES_RELEASE);
274274
phase = project.updatePhase(Phase.InstalledRelease);
275275
}
276276
log.info("Installed release {} {}", name, releaseProperties.getRelease());
@@ -328,7 +328,7 @@ public IExit invoke() throws Throwable {
328328
// Check out the branch head
329329
project.getGit().checkout().setCreateBranch(false).setName(getBranch()).call();
330330
// Maven install (stream stdio to the console) the new development versions
331-
getContext().getMaven().install(project.getDirectory(), IMaven.PROFILES_RELEASE);
331+
getContext().getMaven().install(project.getDirectory(), false, IMaven.PROFILES_RELEASE);
332332

333333
log.info("Updating downstream {}", name);
334334
for (BulldozerProject downstream : getContext().getProjects().values()) {
@@ -363,7 +363,7 @@ public IExit invoke() throws Throwable {
363363
log.info("\t{}", name);
364364
final BulldozerProject project = getContext().getNameToProject().get(name);
365365
// Maven install (stream stdio to the console) the downstream, since it was updated
366-
getContext().getMaven().install(project.getDirectory());
366+
getContext().getMaven().install(project.getDirectory(), false, HCollection.emptyList());
367367
}
368368

369369
// Find the local maven repository

bd-build/src/main/java/com/g2forge/bulldozer/build/maven/IMaven.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ public default String evaluate(Path path, String expression) {
7777
public Stream<String> evaluateRaw(@Working Path path, @Named("-Dexpression=") String expression);
7878

7979
@Command({ "mvn", "clean", "install" })
80-
public void install(@Working Path path, @ArgumentRenderer(CSVArgumentRenderer.class) @Named("-P") List<String> profiles);
81-
82-
@Command({ "mvn", "clean", "install" })
83-
public void install(@Working Path path, @ArgumentRenderer(CSVArgumentRenderer.class) @Named("-P") String... profiles);
80+
public void install(@Working Path path, @Flag("-DskipTests") boolean skipTests, @ArgumentRenderer(CSVArgumentRenderer.class) @Named("-P") List<String> profiles);
8481

8582
@Command({ "mvn", "release:perform" })
8683
public void releasePerform(@Working Path path, @ArgumentRenderer(CSVArgumentRenderer.class) @Named("-P") List<String> profiles);

0 commit comments

Comments
 (0)