Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
Code coverage reporting with JaCoCo and Coveralls, closes #4 (#14)
Browse files Browse the repository at this point in the history
* Code coverage reporting with JaCoCo and Coveralls
* Raise the TestFX setup timeout on Travis CI Macs from 2.5 to 10 seconds
  • Loading branch information
carltonwhitehead authored Nov 27, 2017
1 parent 16cb61f commit 0b7b8f5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ matrix:

- os: osx
osx_image: xcode8.2
env: _JAVA_OPTIONS="-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500"
env: _JAVA_OPTIONS="-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=10000"

# enable Java 8u45+, see https://github.com/travis-ci/travis-ci/issues/4042
addons:
Expand All @@ -31,6 +31,9 @@ before_script:
script:
- mvn verify

after_success:
- mvn clean test jacoco:report coveralls:report

cache:
directories:
- $HOME/.m2
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,24 @@
<mainClass>org.coner.worker.WorkerAppKt</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</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.3.0</version>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 0b7b8f5

Please sign in to comment.