Skip to content

Commit 04f9055

Browse files
committed
Set shell to bash when running Codecov upload script
1 parent c8bb5fe commit 04f9055

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tools/make/lib/coverage-service/codecov.mk

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
# Define the command for `node`:
55
NODE ?= node
66

7-
# Define the command for `cat`:
8-
CAT ?= cat
9-
CAT_FLAGS ?=
10-
117
# Define the path to the [Codecov][1] executable.
128
#
139
# [1]: https://github.com/codecov/codecov-bash
@@ -16,9 +12,11 @@ CODECOV ?= bash <(curl -s https://codecov.io/bash)
1612

1713
# Define the command-line options to be used when reporting coverage statistics:
1814
CODECOV_FLAGS ?= \
15+
-f "$(LCOV_INFO)" \
1916
-F $(CI_SERVICE) \
2017
-F $(shell echo $(KERNEL) | tr '[:upper:]' '[:lower:]') \
21-
-F $(shell $(NODE) --version | tr '\.' '_' | (printf 'node_' && $(CAT)))
18+
-F $(shell $(NODE) --version | tr '\.' '_' | (printf 'node_' && $(CAT))) \
19+
-Z
2220

2321
ifdef COVERAGE_NAME
2422
CODECOV_FLAGS := $(CODECOV_FLAGS) -F $(COVERAGE_NAME)
@@ -36,8 +34,9 @@ CODECOV_CONF ?= $(ROOT)/.codecov.yml
3634
#
3735
# [1]: https://codecov.io/
3836

37+
coverage-codecov: SHELL := /bin/bash
3938
coverage-codecov:
40-
$(QUIET) $(CAT) $(CAT_FLAGS) $(LCOV_INFO) | $(CODECOV) $(CODECOV_FLAGS) || echo "Failed to upload coverage reports to Codecov. :("
39+
$(QUIET) $(CODECOV) $(CODECOV_FLAGS) || echo 'Failed to upload coverage reports to Codecov.'
4140

4241
.PHONY: coverage-codecov
4342

0 commit comments

Comments
 (0)