forked from ozangunalp/gitflow-incremental-builder
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made possible to disable partial on goal
- Loading branch information
Showing
7 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
invoker.name = TEST for goal | ||
invoker.goals = -e generate-sources -D partial.disableOnGoal=generate-sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<modules> | ||
<module>child1</module> | ||
<module>child2</module> | ||
<module>child3</module> | ||
<module>child4</module> | ||
<module>child5</module> | ||
<module>child6</module> | ||
<module>child7</module> | ||
</modules> | ||
|
||
<groupId>parent</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.lesfurets</groupId> | ||
<artifactId>partial-build-plugin</artifactId> | ||
<version>@project.version@</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<enabled>true</enabled> | ||
<uncommited>false</uncommited> | ||
<referenceBranch>refs/heads/develop</referenceBranch> | ||
<baseBranch>refs/heads/feature/1</baseBranch> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import com.lesfurets.maven.partial.mocks.ITHelper | ||
|
||
def testProjectBasedir = basedir as File | ||
def pbpBaseDir = sourceDir as String | ||
def pbpVersion = projectVersion as String | ||
new ITHelper(testProjectBasedir, pbpBaseDir, pbpVersion).setupTest() | ||
|
||
return true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import org.codehaus.plexus.util.FileUtils | ||
|
||
def file = new File(basedir, "build.log") | ||
String buildLog = FileUtils.fileRead(file) | ||
|
||
boolean verified = true | ||
verified &= buildLog.contains(" subchild2") | ||
verified &= buildLog.contains(" child3") | ||
verified &= buildLog.contains(" child4") | ||
verified &= buildLog.contains(" subchild41") | ||
|
||
verified &= buildLog.contains(" child1") | ||
verified &= buildLog.contains(" child2") | ||
verified &= buildLog.contains(" child5") | ||
verified &= buildLog.contains(" child6") | ||
verified &= buildLog.contains(" child7") | ||
verified &= buildLog.contains(" subchild1") | ||
verified &= buildLog.contains(" subchild42") | ||
verified &= buildLog.contains(" parent") | ||
|
||
verified &= buildLog.contains("Partial build was disable for goal: [generate-sources]") | ||
|
||
return verified; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters