10000 chore: fix CI code coverage publishing (#78) · lholmquist/sdk-javascript@8fb0ddf · GitHub
[go: up one dir, main page]

Skip to content

Commit 8fb0ddf

Browse files
authored
chore: fix CI code coverage publishing (cloudevents#78)
The code coverage publishing in package.json works fine on non-ubuntu systems. However, in Ubuntu `/bin/sh` is symlinked to `/bin/dash` which doesn't support everything supported by `/bin/bash` - specifically `-o pipefail`. This commit changes the code coverage script to explicitly use `bash` instead. Fixes: cloudevents#81 Signed-off-by: Lance Ball <lball@redhat.com>
1 parent f47bca4 commit 8fb0ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "mocha test/**/*.js",
1010
"coverage": "nyc --reporter=lcov --reporter=text npm run test",
1111
"precoverage-publish": "npm run coverage",
12-
"coverage-publish": "wget -qO - https://coverage.codacy.com/get.sh | sh -s report -l JavaScript -r coverage/lcov.info",
12+
"coverage-publish": "wget -qO - https://coverage.codacy.com/get.sh | bash -s report -l JavaScript -r coverage/lcov.info",
1313
"release": "standard-version"
1414
},
1515
"standard-version": {

0 commit comments

Comments
 (0)
0