From 8fb0ddf6eb0dd05b0728444f404e1014a9348599 Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Wed, 29 Apr 2020 12:10:25 -0400 Subject: [PATCH] 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 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b82e5bc..9056ab4 100644 --- a/package.json +++ b/package.json @@ -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": {