Commit b361eb2 1 parent d3d3728 commit b361eb2 Copy full SHA for b361eb2
File tree 4 files changed +27
-15
lines changed
4 files changed +27
-15
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ cd $(dirname $0)/..
23
23
npm install
24
24
25
25
# Install and link samples
26
- cd samples/
27
- npm link ../
28
- npm install
29
- cd ..
26
+ if [ -f samples/package.json ]; then
27
+ cd samples/
28
+ npm link ../
29
+ npm install
30
+ cd ..
31
+ fi
30
32
31
33
npm run lint
Original file line number Diff line number Diff line change @@ -31,12 +31,14 @@ if [ -f .kokoro/pre-samples-test.sh ]; then
31
31
set -x
32
32
fi
33
33
34
- npm install
34
+ if [ -f samples/package.json ]; then
35
+ npm install
35
36
36
- # Install and link samples
37
- cd samples/
38
- npm link ../
39
- npm install
40
- cd ..
37
+ # Install and link samples
38
+ cd samples/
39
+ npm link ../
40
+ npm install
41
+ cd ..
41
42
42
- npm run samples-test
43
+ npm run samples-test
44
+ fi
Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ cd $(dirname $0)/..
22
22
23
23
npm install
24
24
npm test
25
- ./node_modules/nyc/bin/nyc.js report
26
25
27
- bash $KOKORO_GFILE_DIR /codecov.sh
26
+ COVERAGE_NODE=10
27
+ if npx check-node-version@3.3.0 --silent --node $COVERAGE_NODE ; then
28
+ NYC_BIN=./node_modules/nyc/bin/nyc.js
29
+ if [ -f " $NYC_BIN " ]; then
30
+ $NYC_BIN report
31
+ fi
32
+ bash $KOKORO_GFILE_DIR /codecov.sh
33
+ else
34
+ echo " coverage is only reported for Node $COVERAGE_NODE "
35
+ fi
Original file line number Diff line number Diff line change 1
1
{
2
- "updateTime": "2019-04-02T18:07:08.916064Z ",
2
+ "updateTime": "2019-05-04T11:22:40.672305Z ",
3
3
"sources": [
4
4
{
5
5
"template": {
6
6
"name": "node_library",
7
7
"origin": "synthtool.gcp",
8
- "version": "2019.2.26 "
8
+ "version": "2019.5.2 "
9
9
}
10
10
}
11
11
]
You can’t perform that action at this time.
0 commit comments