gatk-3.8/public/package-tests/pom.xml

213 lines
9.3 KiB
XML

<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--
Run during package testing by the maven invoker plugin in the sting-aggregator /pom.xml
-->
<parent>
<groupId>org.broadinstitute.sting</groupId>
<artifactId>sting-root</artifactId>
<version>3.1</version>
<relativePath>../sting-root</relativePath>
</parent>
<artifactId>sting-package-tests</artifactId>
<packaging>pom</packaging>
<name>Sting Package Tests</name>
<properties>
<sting.basedir>${project.basedir}/../..</sting.basedir>
<sting.packageunittests.skipped>true</sting.packageunittests.skipped>
<sting.packageintegrationtests.skipped>true</sting.packageintegrationtests.skipped>
<sting.packagequeuetests.skipped>true</sting.packagequeuetests.skipped>
<sting.packagelargescaletests.skipped>true</sting.packagelargescaletests.skipped>
<sting.packageknowledgebasetests.skipped>true</sting.packageknowledgebasetests.skipped>
</properties>
<!-- Dependency configuration (versions, etc.) -->
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${sting.packagetests.artifactId}</artifactId>
<version>${project.version}</version>
</dependency>
<!--
For com.sun.javadoc
See also: http://sunnytalkstech.blogspot.in/2011/08/maven-dependency-for-toolsjar-in-jdk7.html
-->
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.cofoja</groupId>
<artifactId>cofoja</artifactId>
</dependency>
<!--
gatk-framework test-jar added for BaseTest
TODO: Currently the <exclusion> isn't working 100%, so switched to using additionalClasspathElements
TODO: Uncomment below to use the explicitly bad "exclude *" to really test correct packaging,
TODO: until we can separate BaseTest and other utilities into their own sting-test-utils artifact.
TODO: We only want the classes in the packaged jars tested, not the classes within the dependency jars too.
See also:
http://stackoverflow.com/questions/547805/how-to-exclude-all-transitive-dependencies-of-a-maven-dependency
http://maven.apache.org/plugins/maven-jar-plugin/usage.html#The_preferred_way
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gatk-framework</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
-->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.caliper</groupId>
<artifactId>caliper</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<directory>${sting.packagetests.basedir}/target</directory>
</build>
<profiles>
<profile>
<id>unittests</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>unittests.profile.enabled</name>
<value>true</value>
</property>
</activation>
<build>
<!-- Plugin configuration -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<basedir>${sting.packagetests.basedir}</basedir>
<workingDirectory>${sting.packagetests.basedir}</workingDirectory>
<classesDirectory>${project.build.outputDirectory}/ignored_by_package_test</classesDirectory>
<testClassesDirectory>${sting.packagetests.testClasses}</testClassesDirectory>
<!-- TODO: Using additionalClasspathElement while debugging exclusion issue above -->
<additionalClasspathElements>
<additionalClasspathElement>${sting.basedir}/public/gatk-framework/target/gatk-framework-${project.version}-tests.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
<executions>
<execution>
<id>unit-tests</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>${sting.packageunittests.skipped}</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>integrationtests</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>integrationtests.profile.enabled</name>
<value>true</value>
</property>
</activation>
<build>
<!-- Plugin configuration -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<basedir>${sting.packagetests.basedir}</basedir>
<workingDirectory>${sting.packagetests.basedir}</workingDirectory>
<classesDirectory>${project.build.outputDirectory}/ignored_by_package_test</classesDirectory>
<testClassesDirectory>${sting.packagetests.testClasses}</testClassesDirectory>
<!-- TODO: Using additionalClasspathElement while debugging exclusion issue above -->
<additionalClasspathElements>
<additionalClasspathElement>${sting.basedir}/public/gatk-framework/target/gatk-framework-${project.version}-tests.jar</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
<executions>
<execution>
<id>integration-tests</id>
<goals>
<goal>verify</goal>
</goals>
<!-- run integration tests -->
<configuration>
<skip>${sting.packageintegrationtests.skipped}</skip>
</configuration>
</execution>
<execution>
<id>queue-tests</id>
<goals>
<goal>verify</goal>
</goals>
<!-- run queue dry run tests -->
<configuration>
<skip>${sting.packagequeuetests.skipped}</skip>
</configuration>
</execution>
<execution>
<id>large-scale-tests</id>
<goals>
<goal>verify</goal>
</goals>
<!-- run large scale tests -->
<configuration>
<skip>${sting.packagelargescaletests.skipped}</skip>
</configuration>
</execution>
<execution>
<id>knowledge-base-tests</id>
<goals>
<goal>verify</goal>
</goals>
<!-- run knowledge base tests -->
<configuration>
<skip>${sting.packageknowledgebasetests.skipped}</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>