chore(nestjs) add scripts directory

This commit is contained in:
Kamil Myśliwiec
2018-10-03 17:00:08 +02:00
parent 1acae78302
commit 3a74c790bf
6 changed files with 74 additions and 62 deletions

8
scripts/prepare_tests.sh Normal file
View File

@@ -0,0 +1,8 @@
# 1. Install all dependencies
for D in integration/*; do [ -d "${D}" ] && npm i; done
# 2. Build fresh packages and move them to sample and integration directories
npm run build &>/dev/null
# 3. Start docker containers to perform integration tests
cd integration && docker-compose up -d

2
scripts/test.sh Normal file
View File

@@ -0,0 +1,2 @@
npm run test
npm run integration-test