You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-33Lines changed: 43 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,34 @@
1
-
[Codecov][0] Java Example
2
-
=========================
3
1
4
-
1. Add JaCoCo Plugin to your pom.xml file, [see here](https://github.com/codecov/example-java/blob/master/pom.xml#L38-L56)
5
-
2. Call `bash <(curl -s https://codecov.io/bash) -t repository-upload-token` at the end of your CI build
6
-
- Using Travis CI, CircleCI or AppVeyor **AND** the repository is public? **You're done!** No token needed.
7
-
- Otherwise, please add your [repository token token][5].
8
-
9
-
> Other examples
10
-
> -[Maven Example][4]
11
-
> -[Gradle Example][2]
12
-
> -[Android Example][3]
13
2
14
3
15
-
# Frequently Asked Questions
4
+
# [Codecov][0] Java Example
5
+
## Guide
6
+
### Travis Setup
16
7
17
-
#### ❔How do I enable multi-module projects?
18
-
19
-
In your `pom.xml` file please append a list of modules in your projects
8
+
Add the following to your `.travis.yml`:
9
+
```yml
10
+
language:
11
+
LANG_FOR_REPO
12
+
after_success:
13
+
- bash <(curl -s https://codecov.io/bash)
14
+
```
15
+
### Produce Coverage Reports
16
+
1. Add JaCoCo Plugin to your pom.xml file, [see here](https://github.com/codecov/example-java/blob/master/pom.xml#L38-L56)
17
+
## Caveats
18
+
#### Private Repo
19
+
You will need to add the following your `.travis.yml`:
20
+
```yml
21
+
env:
22
+
global:
23
+
- CODECOV_TOKEN=:uuid-repo-token
24
+
```
25
+
#### JaCoCo Reports
26
+
- Make sure you are on the most up-to-date JaCoCo version. There are issues with previous versions of JaCoCo.
27
+
- JaCoCo reports can expire - Codecov will reject reports that are older than 12 hours. The logs contain details if a report expired.
28
+
## Support
20
29
30
+
### FAQ
31
+
- Q: How do I enable multi-module projects?<br/>A: In your `pom.xml` file please append a list of modules in your projects:
21
32
```xml
22
33
<project>
23
34
<modules>
@@ -26,24 +37,23 @@ In your `pom.xml` file please append a list of modules in your projects
26
37
</modules>
27
38
</project>
28
39
```
29
-
30
-
#### ❔Seeing `Skipping JaCoCo execution due to missing execution data file`?
31
-
32
-
Please see [http://stackoverflow.com/questions/18107375/...](http://stackoverflow.com/questions/18107375/getting-skipping-jacoco-execution-due-to-missing-execution-data-file-upon-exec)
33
-
34
-
#### ❔Does Codecov accept `jacoco.exec` reports?
35
-
36
-
**No**, these files are not supported. Please produce a `xml` file as detailed in the pom.xml file at [codecov/example-java][1]
37
-
38
-
#### ❔Is there a Gradle example?
39
-
40
-
**Yes**, enter [codecov/example-gradle][2]
41
-
42
-
#### ❔Is there a Android example?
43
-
44
-
**Yes**, enter [codecov/example-android][3]
45
-
46
-
40
+
- Q: Seeing `Skipping JaCoCo execution due to missing execution data file`?<br/>A: Please see [http://stackoverflow.com/questions/18107375/...](http://stackoverflow.com/questions/18107375/getting-skipping-jacoco-execution-due-to-missing-execution-data-file-upon-exec).
41
+
- We should talk about using other CIs here.
42
+
- Q: Does Codecov accept `jacoco.exec` reports?<br/>A: **No**, these files are not supported. Please produce a `xml` file as detailed in the pom.xml file at [codecov/example-java][1].
43
+
- Q: Is there a Gradle example?<br/>A: **Yes**, enter [codecov/example-gradle][2]
44
+
- Q: Is there a Andorid example?<br/>A: **Yes**, enter [codecov/example-android][3]
45
+
- Q: Is there a Maven example?<br/>A: **Yes**, enter [codecov/example-maven][4]
0 commit comments