Skip to content

Commit d0802eb

Browse files
committed
chore: fix CI code coverage publishing
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. Signed-off-by: Lance Ball <[email protected]>
1 parent 5110ad4 commit d0802eb

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
},
1414
"repository": {
1515
"type": "git",

0 commit comments

Comments
 (0)