Skip to content

Commit e406a72

Browse files
authored
Merge pull request #176 from codacy/wget-docs
Update documentation on using with wget on Alpine
2 parents 7fbca97 + e4d8541 commit e406a72

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

README.md

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,47 @@ Or use the flag: `--codacy-api-base-url <Codacy_instance_URL>:16006`.
3232

3333
## Running Codacy Coverage Reporter
3434

35-
Requirements:
35+
### Requirements
3636

37-
- bash
38-
- curl or wget
39-
- glibc
37+
- `bash` or `sh` (Use `bash` on Ubuntu)
38+
- `curl` or `wget`
39+
- `glibc`
4040

41+
### _Using curl_
4142
```bash
4243
bash <(curl -Ls https://coverage.codacy.com/get.sh)
4344
```
4445

45-
> To specify a coverage reporter version, use `CODACY_REPORTER_VERSION` environment variable. You can find all versions in the [Releases tab](https://github.com/codacy/codacy-coverage-reporter/releases).
46+
### _Using wget_
47+
```bash
48+
bash <(wget -q -O - https://coverage.codacy.com/get.sh)
49+
```
4650

47-
Using CircleCI? Check out the [codacy/coverage-reporter orb](docs/installation.md#circleci-orb).
51+
### _On Alpine Linux_
52+
```sh
53+
wget -qO - https://coverage.codacy.com/get.sh | sh
54+
```
55+
56+
#### _On Alpine Linux passsing command line options_
57+
```sh
58+
wget -qO - https://coverage.codacy.com/get.sh | sh -s report -l Java -r report1.xml --partial
59+
```
60+
61+
### Choose a specific version
62+
The script uses by default the latest version.
63+
64+
If you want to specify a coverage reporter version, use `CODACY_REPORTER_VERSION` environment variable.
65+
66+
You can find all versions in the [Releases tab](https://github.com/codacy/codacy-coverage-reporter/releases).
67+
68+
### Manual Installation
4869

4970
If the automated script does not cover your use case, [check the manual installation methods](docs/installation.md).
5071

72+
## CircleCI Orb
73+
74+
Using CircleCI? Check out the [codacy/coverage-reporter orb](docs/installation.md#circleci-orb).
75+
5176
## Supported formats
5277

5378
The following table contains the formats supported and which coverage tools generate them:

0 commit comments

Comments
 (0)