Skip to content

Commit

Permalink
Integrate Coveralls with Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jan 13, 2014
1 parent 7bdc1a5 commit 5f35461
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ before_install:
script:
- mvn test -X

after_success:
- mvn clean cobertura:cobertura coveralls:cobertura -P ci

branches:
except:
- gh-pages
Expand Down
48 changes: 31 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@
</developers>

<profiles>
<profile>
<id>ci</id>
<build>
<plugins>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>2.1.0</version>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>full</id>
<modules>
Expand Down Expand Up @@ -264,7 +276,6 @@
</profiles>

<build>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -280,6 +291,25 @@
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<format>xml</format>
<maxmem>256m</maxmem>
<aggregate>true</aggregate>
<check>
<branchRate>85</branchRate>
<lineRate>85</lineRate>
<haltOnFailure>false</haltOnFailure>
<totalBranchRate>85</totalBranchRate>
<totalLineRate>85</totalLineRate>
<packageLineRate>85</packageLineRate>
<packageBranchRate>85</packageBranchRate>
</check>
</configuration>
</plugin>
</plugins>

<pluginManagement>
Expand Down Expand Up @@ -421,22 +451,6 @@
<height>700</height>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<check>
<branchRate>85</branchRate>
<lineRate>85</lineRate>
<haltOnFailure>false</haltOnFailure>
<totalBranchRate>85</totalBranchRate>
<totalLineRate>85</totalLineRate>
<packageLineRate>85</packageLineRate>
<packageBranchRate>85</packageBranchRate>
</check>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
Expand Down

0 comments on commit 5f35461

Please sign in to comment.