forked from googleapis/nodejs-pubsub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: only pipe to codecov if tests run in Node 10 (googleapis#469)
- Loading branch information
1 parent
ae06ec2
commit ec827f8
Showing
4 changed files
with
31 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,14 @@ cd $(dirname $0)/.. | |
|
||
npm install | ||
npm test | ||
./node_modules/nyc/bin/nyc.js report | ||
|
||
bash $KOKORO_GFILE_DIR/codecov.sh | ||
COVERAGE_NODE=10 | ||
if npx [email protected] --silent --node $COVERAGE_NODE; then | ||
NYC_BIN=./node_modules/nyc/bin/nyc.js | ||
if [ -f "$NYC_BIN" ]; then | ||
$NYC_BIN report | ||
fi | ||
bash $KOKORO_GFILE_DIR/codecov.sh | ||
else | ||
echo "coverage is only reported for Node $COVERAGE_NODE" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters