We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37c4b0b commit f19b2beCopy full SHA for f19b2be
2 files changed
scripts/generate-coverage.sh
@@ -54,7 +54,7 @@ phantomjs \
54
http://localhost:8082/auto_tests/coverage.html \
55
spec '{"hooks": "mocha-phantomjs-istanbul", "coverageFile": "coverage/coverage.json"}'
56
57
-if [ $CI ]; then
+if test -n "$CI"; then
58
# Convert the JSON coverage to LCOV for coveralls.
59
istanbul report --include coverage/*.json lcovonly
60
scripts/post-coverage.sh
@@ -4,8 +4,9 @@
4
# comment the line out to post
5
#exit 0
6
7
8
- <coverage/lcov.info ./node_modules/.bin/coveralls
+ <coverage/lcov.info ./node_modules/.bin/coveralls || \
9
+ echo "N: above errors posting to coveralls.io are ignored"
10
fi
11
12
true # reset exit code -- failure to post coverage shouldn't be an error.
0 commit comments