Added fast profile to skip Gradle tests

This commit is contained in:
Marcin Grzejszczak
2016-09-19 19:40:30 +02:00
parent ad3fcb4bb7
commit 55fc03d9d9
2 changed files with 65 additions and 20 deletions

View File

@@ -81,6 +81,7 @@ test {
exceptionFormat = 'full'
}
systemProperties = testSystemProperties
enabled = !project.hasProperty('fast')
}
groovydoc {

View File

@@ -53,26 +53,6 @@
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>gradle</id>
<phase>package</phase>
<configuration>
<executable>./gradlew</executable>
<arguments>
<argument>build</argument>
<argument>jacocoTestReport</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
@@ -113,4 +93,68 @@
</plugins>
</build>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>gradle</id>
<phase>package</phase>
<configuration>
<executable>./gradlew</executable>
<arguments>
<argument>build</argument>
<argument>jacocoTestReport</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>fast</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>gradle</id>
<phase>package</phase>
<configuration>
<executable>./gradlew</executable>
<arguments>
<argument>build</argument>
<argument>jacocoTestReport</argument>
<argument>-Pfast</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>