Skip to content

Commit c2845cb

Browse files
committed
Added Codecov coverage reporting
1 parent 97541af commit c2845cb

6 files changed

Lines changed: 31 additions & 4 deletions

File tree

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
language: java
2-
before_install: do this
2+
before_install:
3+
- do this
4+
- sudo pip install codecov
5+
after_success: codecov

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Hello world
22
=======
33

44
[![Build Status](https://secure.travis-ci.org/codecov/codecov-python.svg?branch=master)](http://travis-ci.org/codecov/codecov-python)
5+
[![codecov.io](https://codecov.io/github/codecov-test/java-2/coverage.svg?branch=master)](https://codecov.io/github/codecov-test/java-2?branch=master)

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
===========
1+
=========== .. image:: https://codecov.io/github/codecov-test/java-2/coverage.svg?branch=master :target: https://codecov.io/github/codecov-test/java-2?branch=master
22
Hello world
33
===========
44

README.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
h2. Hello world
1+
h2. Hello world !https://codecov.io/github/codecov-test/java-2/coverage.svg?branch=master(Coverage via codecov.io)!:https://codecov.io/github/codecov-test/java-2?branch=master
22

circle.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ machine:
33
version: 20
44

55
dependencies:
6-
override: some java cmd
6+
override:
7+
- some java cmd
8+
- sudo pip install codecov
79

810
test:
911
override: do this
12+
post:
13+
- codecov

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,25 @@
131131
<autoVersionSubmodules>true</autoVersionSubmodules>
132132
</configuration>
133133
</plugin>
134+
<plugin>
135+
<groupId>org.jacoco</groupId>
136+
<artifactId>jacoco-maven-plugin</artifactId>
137+
<version>0.5.8.201207111220</version>
138+
<executions>
139+
<execution>
140+
<goals>
141+
<goal>prepare-agent</goal>
142+
</goals>
143+
</execution>
144+
<execution>
145+
<id>report</id>
146+
<phase>test</phase>
147+
<goals>
148+
<goal>report</goal>
149+
</goals>
150+
</execution>
151+
</executions>
152+
</plugin>
134153
</plugins>
135154

136155
<pluginManagement>

0 commit comments

Comments
 (0)