This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
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 (#215)
- Loading branch information
1 parent
d863746
commit c5a299d
Showing
4 changed files
with
27 additions
and
15 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