File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11
11
"check" : " gts check" ,
12
12
"clean" : " gts clean && node-gyp clean" ,
13
13
"codecov" : " nyc report --reporter=json && codecov -f coverage/*.json" ,
14
- "compile" : " tsc -p . && node-pre-gyp build " ,
14
+ "compile" : " tsc -p ." ,
15
15
"fix" : " gts fix" ,
16
16
"lint" : " gts check" ,
17
17
"docs" : " echo 'no docs yet'" ,
18
18
"prepare" : " npm run compile" ,
19
- "pretest" : " npm run compile" ,
19
+ "pretest" : " npm run compile && node-pre-gyp build " ,
20
20
"posttest" : " npm run check && npm run license-check" ,
21
21
"proto" : " npm run proto:profile" ,
22
22
"proto:profile" : " mkdir -p proto && pbjs -t static-module -w commonjs -o proto/profile.js third_party/proto/profile.proto && pbts -o proto/profile.d.ts proto/profile.js" ,
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ retry() {
52
52
# Display commands being run.
53
53
set -x
54
54
55
+ # Fail on any error.
56
+ set -eo pipefail
57
+
55
58
# Note directory from which test is being run.
56
59
BASE_DIR=$(pwd)
57
60
Original file line number Diff line number Diff line change 35
35
cp -r build/stage/* " ${ARTIFACTS_OUT} /"
36
36
rm -rf build
37
37
done
38
+
39
+ # Remove node_modules directory. When this script is run in a docker container
40
+ # with user root, then a system test running after this script cannot run npm
41
+ # install.
42
+ rm -r node_modules
You can’t perform that action at this time.
0 commit comments