Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Update readme with verification steps (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu authored May 7, 2021
1 parent ce0eb06 commit 578ee4b
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
Codecov Global Uploader
=======================
### Upload reports to Codecov for almost every supported language.
[![codecov](https://codecov.io/gh/codecov/codecov-bash/branch/master/graph/badge.svg?token=iEvSTnW9Qm)](https://codecov.io/gh/codecov/codecov-bash)

> Upload reports to Codecov for almost every supported language.
[Deployed Version](https://codecov.io/bash)

## Running the bash uploader

SHA1Sum: [hash file](https://raw.githubusercontent.com/codecov/codecov-bash/master/SHA1SUM)

------

-----
```bash
# All CI
bash <(curl -s https://codecov.io/bash)
Expand All @@ -24,14 +21,38 @@ curl -s https://codecov.io/bash > .codecov
chmod +x .codecov
./.codecov
```
-----

#### ⚠️ Verifying the bash uploader
As an additional layer of security, users may wish to check the script against the provided SHASUMs.

```bash
curl -fLso codecov https://codecov.io/bash;
VERSION=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2);
for i in 1 256 512
do
shasum -a $i -c --ignore-missing <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM")
done
./codecov
```

or for older versions of `shasum`

------
```bash
curl -fLso codecov https://codecov.io/bash;
VERSION=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2);
for i in 1 256 512
do
shasum -a $i -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM" | grep -w "codecov")
done
./codecov
```

### Languages
> Codecov supports many languages, you can find a full list here: https://docs.codecov.io/docs/supported-languages

### Usage
### Other Usage
> Below are most commonly used settings. [View full list of commands](https://github.com/codecov/codecov-bash/blob/master/codecov#L56) to see the full list of commands.
```yaml
Expand Down

0 comments on commit 578ee4b

Please sign in to comment.