Skip to content

Commit

Permalink
#320 added testCoverage Maven Profile
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Mar 5, 2020
1 parent 7a07002 commit 5a5f996
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ script:
- docker pull hello-world #for some IT cases
- docker pull ubuntu # for container IT cases
- docker run -d --privileged -p 12375:2375 docker:dind
- mvn clean install -Pcheckstyle,itcases
#jacoco:report coveralls:report
- mvn clean install -Pcheckstyle,itcases -PtestCoverage jacoco:report coveralls:report
49 changes: 28 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,27 +107,6 @@
<target>1.8</target>
</configuration>
</plugin>
<!--<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.2.0</version>
<configuration>
<failOnServiceError>false</failOnServiceError>
</configuration>
</plugin>-->
</plugins>
</build>
<profiles>
Expand Down Expand Up @@ -167,6 +146,34 @@
</plugins>
</build>
</profile>
<profile>
<id>testCoverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.2.0</version>
<configuration>
<failOnServiceError>false</failOnServiceError>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>itcases</id>
<build>
Expand Down

0 comments on commit 5a5f996

Please sign in to comment.