Skip to content

Commit

Permalink
add jacoco:reports
Browse files Browse the repository at this point in the history
  • Loading branch information
klali committed Apr 14, 2015
1 parent 617b822 commit e0803a1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ test/lib/jacoco.jar
test/lib/jacocoagent.jar
test/lib/jacocoant.jar
test/lib/jacocoreport.jar
test/lib/asm-debug-all.jar

# jacoco artifacts
jacoco.exec
jacoco.xml
jacoco/
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ after_success:
- curl -L https://search.maven.org/remotecontent?filepath=org/jacoco/org.jacoco.ant/0.7.4.201502262128/org.jacoco.ant-0.7.4.201502262128.jar -o test/lib/jacocoant.jar
- curl -L https://search.maven.org/remotecontent?filepath=org/jacoco/org.jacoco.agent/0.7.4.201502262128/org.jacoco.agent-0.7.4.201502262128.jar -o test/lib/jacocoagent.jar
- curl -L https://search.maven.org/remotecontent?filepath=org/jacoco/org.jacoco.report/0.7.4.201502262128/org.jacoco.report-0.7.4.201502262128.jar -o test/lib/jacocoreport.jar
- curl -L https://search.maven.org/remotecontent?filepath=org/ow2/asm/asm-debug-all/5.0.3/asm-debug-all-5.0.3.jar -o test/lib/asm-debug-all.jar
- ant -Dtest.build.mock=1 coverage
- mvn coveralls:report
- mvn coveralls:report -DjacocoReports=jacoco.xml
15 changes: 15 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,21 @@
</batchtest>
</junit>
</jacoco:coverage>
<jacoco:report>
<executiondata>
<file file="jacoco.exec"/>
</executiondata>
<structure name="ykneo-oath project">
<classfiles>
<fileset dir="applet/bin"/>
</classfiles>
<sourcefiles encoding="UTF-8">
<fileset dir="applet/src"/>
</sourcefiles>
</structure>
<xml destfile="jacoco.xml"/>
<html destdir="jacoco"/>
</jacoco:report>
<fail if="junit.failure" message="Unit test(s) failed. See reports!"/>
</target>
</project>

0 comments on commit e0803a1

Please sign in to comment.