chore: fix CI code coverage publishing (#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: https://github.com/cloudevents/sdk-javascript/issues/81 Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
parent
f47bca4ff0
commit
8fb0ddf6eb
|
@ -9,7 +9,7 @@
|
|||
"test": "mocha test/**/*.js",
|
||||
"coverage": "nyc --reporter=lcov --reporter=text npm run test",
|
||||
"precoverage-publish": "npm run coverage",
|
||||
"coverage-publish": "wget -qO - https://coverage.codacy.com/get.sh | sh -s report -l JavaScript -r coverage/lcov.info",
|
||||
"coverage-publish": "wget -qO - https://coverage.codacy.com/get.sh | bash -s report -l JavaScript -r coverage/lcov.info",
|
||||
"release": "standard-version"
|
||||
},
|
||||
"standard-version": {
|
||||
|
|
Loading…
Reference in New Issue