aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.examples.test/pom.xml
diff options
context:
space:
mode:
authorMirko Friedenhagen <mfriedenhagen@gmail.com>2013-11-24 22:17:46 +0100
committerMirko Friedenhagen <mfriedenhagen@gmail.com>2013-11-25 20:55:36 +0100
commit73ab23e5740f0e620073e1ad0892bf648e315a0f (patch)
tree6af51dff27668122a0fac0ff3a8f1a510972b175 /org.jacoco.examples.test/pom.xml
parent84a59a120a6dfd4327374f06dac9bfa91d9db1f9 (diff)
downloadjacoco-73ab23e5740f0e620073e1ad0892bf648e315a0f.tar.gz
Add invoker tests.
Diffstat (limited to 'org.jacoco.examples.test/pom.xml')
-rw-r--r--org.jacoco.examples.test/pom.xml83
1 files changed, 83 insertions, 0 deletions
diff --git a/org.jacoco.examples.test/pom.xml b/org.jacoco.examples.test/pom.xml
index a2dbf9d3..2dec0c8a 100644
--- a/org.jacoco.examples.test/pom.xml
+++ b/org.jacoco.examples.test/pom.xml
@@ -38,4 +38,87 @@
<artifactId>junit</artifactId>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-unpack</id>
+ <phase>package</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>org.jacoco.examples</artifactId>
+ <version>${project.version}</version>
+ <type>zip</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${project.build.directory}/build</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>test-pom</id>
+ <goals>
+ <goal>install</goal>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+ <postBuildHookScript>../../../src/test/resources/verify.groovy</postBuildHookScript>
+ <goals>
+ <goal>verify</goal>
+ </goals>
+ </configuration>
+ </execution>
+ <execution>
+ <id>test-pom-it</id>
+ <goals>
+ <goal>install</goal>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <cloneProjectsTo>${project.build.directory}/it-it</cloneProjectsTo>
+ <postBuildHookScript>../../../src/test/resources/verify-it.groovy</postBuildHookScript>
+ <goals>
+ <!-- this is probably a hack! -->
+ <goal>-f pom-it.xml</goal>
+ <goal>verify</goal>
+ </goals>
+ </configuration>
+ </execution>
+ <execution>
+ <id>test-pom-offline</id>
+ <goals>
+ <goal>install</goal>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <cloneProjectsTo>${project.build.directory}/it-offline</cloneProjectsTo>
+ <goals>
+ <!-- this is probably a hack! -->
+ <goal>-f pom-offline.xml</goal>
+ <goal>verify</goal>
+ </goals>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <projectsDirectory>${project.build.directory}/build/examples</projectsDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>