File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -15,26 +15,33 @@ Multi-language coverage reporter for Codacy https://www.codacy.com
1515Codacy assumes that coverage is previously configured for your project.
1616The 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
2420Then set it in your terminal, replacing %Project_Token% with your own token:
2521
2622```
2723export 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
4047Codacy automatically detects the CommitUUID from several sources:
You can’t perform that action at this time.
0 commit comments