Skip to content

Commit df4acfa

Browse files
committed
Generating codacy coverage should not fail build
This should force the coverage job to return with a success error code. Codacy changed support for legacy projects. This change should not cause builds to fail and should not influence ability to merge pull requests. Until further work with coverage with codacy, this change emits a warning of "NO COVERAGE" while allowing the build to pass, rather than failing the build.
1 parent cc392c8 commit df4acfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"bundle-dev": "webpack --mode development --config webpack/webpack.config.js && npm run-script generate-keys",
3737
"bundle-analyzer": "webpack --mode development --config webpack/webpack.config.js --profile --json > stats.json && webpack-bundle-analyzer stats.json",
3838
"generate-keys": "node bin/generateRandomString.js >tmp/randomString",
39-
"coverage": "cat ./coverage/lcov.info | env-cmd -f ./tests/ci.test.env codacy-coverage",
39+
"coverage": "cat ./coverage/lcov.info | env-cmd -f ./tests/ci.test.env codacy-coverage || echo NO COVERAGE",
4040
"dev": "env-cmd -f ./my.env nodemon --inspect lib/server/server.js 0.0.0.0",
4141
"dev-test": "env-cmd -f ./my.devtest.env nodemon --inspect lib/server/server.js 0.0.0.0",
4242
"prod": "env-cmd -f ./my.prod.env node lib/server/server.js 0.0.0.0",

0 commit comments

Comments
 (0)