Skip to content

Commit

Permalink
Implement automatic testing on PRs (#41)
Browse files Browse the repository at this point in the history
* Initial pass of automatic testing

* Looking for cobortura reports

* Attempt to look in more than one dir for coverage

* Still looking for cobertura files

* Now looking for coverage files

* Testing for cobertura java 8 bug

* Swap cobertura for JoCoCo

* Stop travis running cobertura

* Add linting to compiler

* Move JaCoCo into module POMs

* Fix atrocious spacing in module POMs
  • Loading branch information
mattcolegate authored and robbinspg committed Aug 17, 2017
1 parent c04ff83 commit 254aa61
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: java
after_success:
- bash <(curl -s https://codecov.io/bash)
22 changes: 22 additions & 0 deletions dashboard/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
Expand Down Expand Up @@ -137,6 +156,9 @@
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgs>
<arg>-Xlint:all</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
Expand Down
22 changes: 22 additions & 0 deletions javaagent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,25 @@

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down Expand Up @@ -145,6 +164,9 @@
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgs>
<arg>-Xlint:all</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 254aa61

Please sign in to comment.