Skip to content

Commit dedb0d2

Browse files
committed
docs: Update README with new bintray binary recommended usage
1 parent 45afbcf commit dedb0d2

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,33 @@ Multi-language coverage reporter for Codacy https://www.codacy.com
1515
Codacy assumes that coverage is previously configured for your project.
1616
The supported coverage formats are JaCoCo and Cobertura.
1717

18-
You can run the coverage reporter:
19-
20-
1. Download the latest jar from https://github.com/codacy/codacy-coverage-reporter/releases/latest
21-
22-
2. Update Codacy - to do this you will need your project API token. You can find the token in Project -> Settings -> Integrations -> Project API.
18+
1. Setup the project API token. You can find the token in Project -> Settings -> Integrations -> Project API.
2319

2420
Then set it in your terminal, replacing %Project_Token% with your own token:
2521

2622
```
2723
export CODACY_PROJECT_TOKEN=%Project_Token%
2824
```
2925

30-
3. Run the command below (changing <version> for the version you just downloaded)
26+
### Linux amd64
3127

28+
```bash
29+
LATEST_VERSION=$(curl -Lqs https://api.bintray.com/packages/codacy/Binaries/codacy-coverage-reporter/versions/_latest | jq -r .name)
30+
curl -o codacy-coverage-reporter https://dl.bintray.com/codacy/Binaries/${LATEST_VERSION}/:codacy-coverage-reporter-linux
31+
chmod +x codacy-coverage-reporter
32+
./codacy-coverage-reporter report -l Java -r build/reports/jacoco/test/jacocoTestReport.xml
3233
```
34+
35+
### Others
36+
37+
1. Download the latest jar from https://github.com/codacy/codacy-coverage-reporter/releases/latest
38+
39+
2. Run the command below (changing <version> for the version you just downloaded)
40+
41+
```bash
3342
$ java -jar codacy-coverage-reporter-assembly-<version>.jar report -l Java -r jacoco.xml
3443
```
3544

36-
You can also use the option `--project-token` or `-t` to set it.
37-
3845
### CommitUUID Detection
3946

4047
Codacy automatically detects the CommitUUID from several sources:

0 commit comments

Comments
 (0)