Skip to content

Commit 64b261f

Browse files
committed
Only run coveralls cmd when token exists in env
1 parent 1fbbd35 commit 64b261f

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
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"coverage": "nyc npm run coverageTests && nyc report --reporter=text-lcov > .nyc_output/lcov.info",
1111
"coverageTests": "tape ./tests/api/*.js ./tests/tester.js -s",
12-
"coveralls": "npm run coverage && coveralls <.nyc_output/lcov.info",
12+
"coveralls": "npm run coverage && if [ -n \"$COVERALLS_REPO_TOKEN\" ]; then coveralls <.nyc_output/lcov.info; fi",
1313
"testVM": "node ./tests/tester -v",
1414
"testStateByzantium": "npm run build:dist && node ./tests/tester -s --fork='Byzantium' --dist",
1515
"testStateConstantinople": "npm run build:dist && node ./tests/tester -s --fork='Constantinople' --dist",

0 commit comments

Comments
 (0)