Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrocodacy committed Feb 22, 2021
1 parent 70aa26c commit 2ebd04e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/alternative-ways-of-running-coverage-reporter.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ docker run -v $PWD:/code codacy/codacy-coverage-reporter:<version> report

If you prefer, you can manually download and run the native `codacy-coverage-reporter` binary, either for the latest version or a specific one.

You can use the scripts below to automatically check for the latest version of the binaries, download the binaries from either our public S3 or GitHub, and run them.
You can use the scripts below to automatically check for the latest version of the binaries, download the binaries from either Codacy's public store or GitHub, and run them.
- Using Codacy's public S3:

Expand All @@ -64,13 +64,13 @@ You can use the scripts below to automatically check for the latest version of t

Use the Java binary to run Codacy Coverage reporter on other platforms, such as Linux x86, macOS, Windows, etc.

You can use the scripts below to automatically check for the latest version of the Java binaries, download the binaries from either our public S3 or GitHub, and run them.
You can use the scripts below to automatically check for the latest version of the Java binaries, download the binaries from either Codacy's public store or GitHub, and run them.
- Using Codacy's public S3:
- Using Codacy's public store:

```bash
LATEST_VERSION="$(curl -Ls https://artifacts.codacy.com/binaries/codacy-coverage-reporter/latest)"
curl -Ls -o codacy-coverage-reporter-assembly.jar "https://artifacts.codacy.com/binaries/codacy-coverage-reporter/${LATEST_VERSION}/codacy-coverage-reporter-assembly.jar"
LATEST_VERSION="$(curl -Ls https://artifacts.codacy.com/bin/codacy-coverage-reporter/latest)"
curl -Ls -o codacy-coverage-reporter-assembly.jar "https://artifacts.codacy.com/bin/codacy-coverage-reporter/${LATEST_VERSION}/codacy-coverage-reporter-assembly.jar"
java -jar codacy-coverage-reporter-assembly.jar report
```

Expand Down
4 changes: 2 additions & 2 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ download_reporter() {
then
log "$i" "Downloading the codacy reporter $binary_name... ($CODACY_REPORTER_VERSION)"

binary_url="https://artifacts.codacy.com/binaries/codacy-coverage-reporter/$CODACY_REPORTER_VERSION/$binary_name"
binary_url="https://artifacts.codacy.com/bin/codacy-coverage-reporter/$CODACY_REPORTER_VERSION/$binary_name"

download "$binary_url" "$reporter_path"
else
Expand All @@ -104,7 +104,7 @@ os_name=$(uname)

# Find the latest version in case is not specified
if [ -z "$CODACY_REPORTER_VERSION" ] || [ "$CODACY_REPORTER_VERSION" = "latest" ]; then
CODACY_REPORTER_VERSION=$(download "https://artifacts.codacy.com/binaries/codacy-coverage-reporter/latest")
CODACY_REPORTER_VERSION=$(download "https://artifacts.codacy.com/bin/codacy-coverage-reporter/latest")
fi

# Temporary folder for downloaded files
Expand Down

0 comments on commit 2ebd04e

Please sign in to comment.