Skip to content

Commit 4ed4465

Browse files
Ashish AggarwalAshish Aggarwal
authored andcommitted
Updating Makefile
1 parent f526100 commit 4ed4465

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ test:
2828
integration_tests:
2929
docker-compose -f integration-tests/docker-compose.yml -p sandbox up -d
3030
sleep 15
31-
rm -rf ./node_modules/grpc*
3231
docker run -it \
32+
--rm \
3333
--network=sandbox_default \
34-
-v $(PWD):/src \
35-
-w /src \
34+
-v $(PWD):/ws \
35+
-w /ws \
3636
node:6-alpine \
37-
/bin/sh -c 'npm i && ./node_modules/mocha/bin/mocha -r ./node_modules/ts-node/register tests/integration/**/*.ts'
37+
/bin/sh -c 'mkdir -p ws2 && cp -a src tests package.json tsconfig.json ws2/ && cd ws2 && npm i && ./node_modules/mocha/bin/mocha -r ./node_modules/ts-node/register tests/integration/**/*.ts'
3838
docker-compose -f integration-tests/docker-compose.yml -p sandbox stop
3939

4040
.PHONY: compile
@@ -57,6 +57,7 @@ idl_codegen:
5757

5858
.PHONY: npm_install
5959
npm_install:
60+
rm -rf node_modules/grpc*
6061
npm install
6162

6263
example: build

0 commit comments

Comments
 (0)