-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from codacy/mkdocs
Change docs to use mkdocs
- Loading branch information
Showing
13 changed files
with
223 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ codacy-coverage-reporter-darwin-* | |
classes/ | ||
src/test/resources/codacy-coverage.json | ||
/.codacy-coverage/ | ||
site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Authenticating using an Account API token | ||
|
||
If you'd like to automate uploading coverage for multiple repositories you can authenticate using an Account API Token: | ||
|
||
1. Create an Account API token on Codacy. You can find the token in *Your account* → *API tokens*. | ||
1. Set the API token in your terminal, replacing `%API_Token%` with your own token. | ||
1. Set your repository name in your terminal, replacing `%Repo_Name%`. | ||
1. Set your username in your terminal, replacing `%Username%`. | ||
|
||
```bash | ||
export CODACY_API_TOKEN=%API_Token% | ||
export CODACY_PROJECT_NAME=%Repo_Name% | ||
export CODACY_USERNAME=%Username% | ||
``` | ||
|
||
!!! warning | ||
You should keep your API token well protected, as it grants owner permissions to your projects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Multiple coverage reports for the same language | ||
|
||
In order to send multiple reports for the same language, you need to upload each report separately with the flag `--partial` and then notify Codacy, after all reports were sent, with the `final` command. | ||
|
||
Example: | ||
|
||
```bash | ||
codacy-coverage-reporter report -l Java -r report1.xml --partial | ||
codacy-coverage-reporter report -l Java -r report2.xml --partial | ||
codacy-coverage-reporter final | ||
``` | ||
|
||
Using the script: | ||
|
||
```bash | ||
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java -r report1.xml --partial | ||
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java -r report2.xml --partial | ||
bash <(curl -Ls https://coverage.codacy.com/get.sh) final | ||
``` | ||
|
||
If you are sending reports with the partial flag for a certain language you should use it in all reports for that language to ensure the correct calculation of the coverage. | ||
|
||
It might also be possible to merge the reports before uploading them to Codacy, since most coverage tools support merge/aggregation, for example: <http://www.eclemma.org/jacoco/trunk/doc/merge-mojo.html>. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.