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
1. Add Jacoco Plugin to your `build.gradle`. [See here](https://github.com/codecov/example-gradle/blob/master/build.gradle#L5)
4
-
1. Set Jacoco to export xml. [See here](https://github.com/codecov/example-gradle/blob/master/build.gradle#L18-L23)
5
-
1. Execute your tests as normal
6
-
1. Call `gradle jacocoTestReport` to generate report. [See here](https://github.com/codecov/example-gradle/blob/65f88382659cf17c8693c3079941a12c8d004f03/circle.yml#L3)
7
-
1. Call `bash <(curl -s https://codecov.io/bash)` to upload reports to Codecov. [See here](https://github.com/codecov/example-gradle/blob/65f88382659cf17c8693c3079941a12c8d004f03/circle.yml#L4)
8
-
- Public project? Using TravisCI, CircleCI or AppVeyor? You're all set! No upload token required.
9
-
- Otherwise please include your repository upload token. [See here](http://docs.codecov.io/v4.3.0/docs/about-the-codecov-bash-uploader#section-upload-token)
10
-
11
-
## Frequently Asked Questions
3
+
## Guide
4
+
### Travis Setup
12
5
13
-
#### ❔ Do you support Multi-module projects?
6
+
Add to your `.travis.yml` file.
7
+
```yml
8
+
language: java
9
+
jdk:
10
+
- oraclejdk8
11
+
before_script:
12
+
- chmod +x gradlew
13
+
script:
14
+
- ./gradlew check
15
+
- ./gradlew codeCoverageReport
16
+
after_success:
17
+
- bash <(curl -s https://codecov.io/bash)
18
+
```
14
19
15
-
Update your parent (root) `build.gradle`:
20
+
### Produce Coverage Reports
21
+
1. Add Jacoco Plugin to your `build.gradle`. [See here](https://github.com/codecov/example-gradle/blob/master/build.gradle#L5)
22
+
2. Set Jacoco to export xml. [See here](https://github.com/codecov/example-gradle/blob/master/build.gradle#L18-L23)
23
+
3. Execute your tests as normal
24
+
4. Call `gradle jacocoTestReport` to generate report. [See here](https://github.com/codecov/example-gradle/blob/65f88382659cf17c8693c3079941a12c8d004f03/circle.yml#L3)
16
25
26
+
### FAQ
27
+
- Q: Do you support Multi-module projects?<br/>A:Update your parent (root) `build.gradle`:
Repository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide via appending `-t <your upload token>` to you where you upload reports.
0 commit comments