File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1247,6 +1247,9 @@ jobs:
1247
1247
CC : << parameters.c_compiler >>
1248
1248
CGO_ENABLED : 1
1249
1249
command : make << parameters.make_target >> GOOS=<< parameters.go_target_os >> GOARCH=<< parameters.go_arch >>
1250
+ - run :
1251
+ name : Create a shasum file of the Snyk binary
1252
+ command : find binary-releases -name "snyk-*" -exec make {}.sha256 \;
1250
1253
- save_cache :
1251
1254
key : go-build-{{ arch }}-{{ checksum "cliv2/go.sum" }}
1252
1255
paths : [/home/circleci/go/pkg/mod]
@@ -1305,6 +1308,10 @@ jobs:
1305
1308
go_arch : << parameters.go_arch >>
1306
1309
base_url : << parameters.go_download_base_url >>
1307
1310
extraction_path : << parameters.install_path >>
1311
+ - run :
1312
+ working_directory : ./ts-binary-wrapper
1313
+ name : Building and testing the TS-Binary-Wrapper
1314
+ command : npm install --ignore-scripts && npm run build && npm run test
1308
1315
- run :
1309
1316
name : Running acceptance tests
1310
1317
no_output_timeout : 30m
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ $(BINARY_WRAPPER_DIR)/src/generated/sha256sums.txt:
187
187
.PHONY : build-binary-wrapper
188
188
build-binary-wrapper : pre-build-binary-wrapper $(BINARY_WRAPPER_DIR ) /src/generated/version $(BINARY_WRAPPER_DIR ) /src/generated/sha256sums.txt
189
189
@echo " -- Building Typescript Binary Wrapper ($( BINARY_WRAPPER_DIR) /dist/)"
190
- @cd $(BINARY_WRAPPER_DIR ) ; npm run build
190
+ @cd $(BINARY_WRAPPER_DIR ) ; npm install --ignore-scripts && npm run build
191
191
192
192
.PHONY : clean-binary-wrapper
193
193
clean-binary-wrapper :
@@ -199,6 +199,7 @@ clean-binary-wrapper:
199
199
@rm -rf $(BINARY_WRAPPER_DIR ) /src/generated
200
200
@rm -rf $(BINARY_WRAPPER_DIR ) /help
201
201
@rm -rf $(BINARY_WRAPPER_DIR ) /pysrc
202
+ @rm -rf $(BINARY_WRAPPER_DIR ) /wrapper_dist
202
203
@cd $(BINARY_WRAPPER_DIR ) ; npm run clean
203
204
204
205
.PHONY : pre-build-binary-wrapper
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const createJestConfig = (config) => {
7
7
'<rootDir>/test/tap/' ,
8
8
'<rootDir>/packages/' ,
9
9
'<rootDir>/pysrc/' ,
10
+ '<rootDir>/ts-binary-wrapper/' ,
10
11
] ;
11
12
12
13
return {
Original file line number Diff line number Diff line change 2
2
"extends" : " ../tsconfig.settings.json" ,
3
3
"compilerOptions" : {
4
4
"outDir" : " ./wrapper_dist" ,
5
- "rootDir" : " ./src"
5
+ "rootDir" : " ./src" ,
6
+ "esModuleInterop" : true
6
7
},
7
8
"include" : [" ./src/**/*" ],
8
9
"types" : [" node" , " jest" ]
You can’t perform that action at this time.
0 commit comments