1
0
Fork 0
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:
Muyassarov, Feruzjon 2023-03-20 15:46:27 +02:00
parent 13f92faa77
commit 6ed43c2926
2 changed files with 11 additions and 0 deletions

4
codecov.yml Normal file
View file

@ -0,0 +1,4 @@
comment:
layout: "reach, diff, flags, files"
behavior: new
require_changes: false

View file

@ -11,6 +11,10 @@ kubectl="$gobinpath/kubectl"
curl -L https://dl.k8s.io/release/v1.22.1/bin/linux/amd64/kubectl -o "$kubectl" curl -L https://dl.k8s.io/release/v1.22.1/bin/linux/amd64/kubectl -o "$kubectl"
chmod 755 "$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 # Run verify steps
echo "Checking gofmt" echo "Checking gofmt"
make gofmt-verify make gofmt-verify
@ -24,6 +28,9 @@ make helm-lint
echo "Running unit tests" echo "Running unit tests"
make test make test
# Upload coverage report
./codecov -t ${CODECOV_TOKEN}
# Check that repo is clean # Check that repo is clean
if ! git diff --quiet; then if ! git diff --quiet; then
echo "Repository is dirty!" echo "Repository is dirty!"