mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
e2e: add codecov uploader configuration
Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
This commit is contained in:
parent
13f92faa77
commit
6ed43c2926
2 changed files with 11 additions and 0 deletions
4
codecov.yml
Normal file
4
codecov.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
comment:
|
||||
layout: "reach, diff, flags, files"
|
||||
behavior: new
|
||||
require_changes: false
|
|
@ -11,6 +11,10 @@ kubectl="$gobinpath/kubectl"
|
|||
curl -L https://dl.k8s.io/release/v1.22.1/bin/linux/amd64/kubectl -o "$kubectl"
|
||||
chmod 755 "$kubectl"
|
||||
|
||||
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
|
||||
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||
chmod +x codecov
|
||||
|
||||
# Run verify steps
|
||||
echo "Checking gofmt"
|
||||
make gofmt-verify
|
||||
|
@ -24,6 +28,9 @@ make helm-lint
|
|||
echo "Running unit tests"
|
||||
make test
|
||||
|
||||
# Upload coverage report
|
||||
./codecov -t ${CODECOV_TOKEN}
|
||||
|
||||
# Check that repo is clean
|
||||
if ! git diff --quiet; then
|
||||
echo "Repository is dirty!"
|
||||
|
|
Loading…
Reference in a new issue