Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into pjagrut-fix_e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacik committed Jul 3, 2020
2 parents 19a4efb + 80f3120 commit a397757
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ GOLANGCI_LINT_BIN=$(OUTPUT_DIR)/golangci-lint
# -- Variables for uploading code coverage reports to Codecov.io --
# This default path is set by the OpenShift CI
CODECOV_TOKEN_PATH ?= "/usr/local/redhat-developer-service-binding-operator-codecov-token/token"
CODECOV_TOKEN ?= @$(CODECOV_TOKEN_PATH)
REPO_OWNER := $(shell echo $$CLONEREFS_OPTIONS | jq '.refs[0].org')
REPO_NAME := $(shell echo $$CLONEREFS_OPTIONS | jq '.refs[0].repo')
BASE_COMMIT := $(shell echo $$CLONEREFS_OPTIONS | jq '.refs[0].base_sha')
Expand Down Expand Up @@ -396,7 +395,7 @@ upload-codecov-report:
ifneq ($(PR_COMMIT), null)
@echo "uploading test coverage report for pull-request #$(PULL_NUMBER)..."
@/bin/bash <(curl -s https://codecov.io/bash) \
-t $(CODECOV_TOKEN) \
-t $(shell tr -d ' \n' <$CODECOV_TOKEN_PATH) \
-f $(GOCOV_DIR)/*.txt \
-C $(PR_COMMIT) \
-r $(REPO_OWNER)/$(REPO_NAME) \
Expand All @@ -405,7 +404,7 @@ ifneq ($(PR_COMMIT), null)
else
@echo "uploading test coverage report after PR was merged..."
@/bin/bash <(curl -s https://codecov.io/bash) \
-t $(CODECOV_TOKEN) \
-t $(shell tr -d ' \n' <$CODECOV_TOKEN_PATH) \
-f $(GOCOV_DIR)/*.txt \
-C $(BASE_COMMIT) \
-r $(REPO_OWNER)/$(REPO_NAME) \
Expand Down

0 comments on commit a397757

Please sign in to comment.