Skip to content

Commit

Permalink
chore: fix CI code coverage publishing (#78)
Browse files Browse the repository at this point in the history
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: #81

Signed-off-by: Lance Ball <lball@redhat.com>
  • Loading branch information
lance authored Apr 29, 2020
1 parent f47bca4 commit 8fb0ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 8fb0ddf

Please sign in to comment.