Build server files before test the api
This commit is contained in:
parent
18530063fe
commit
1b6b475772
2 changed files with 5 additions and 7 deletions
|
@ -1,8 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
npm run build:server || exit -1
|
||||
|
||||
npm run travis -- client || exit -1
|
||||
npm run travis -- api || exit -1
|
||||
npm run travis -- cli || exit -1
|
||||
npm run travis -- lint || exit -1
|
||||
|
||||
mocha --exit --require ts-node/register --bail server/tests/index.ts
|
||||
|
|
|
@ -5,14 +5,14 @@ if [ $# -eq 0 ]; then
|
|||
exit -1
|
||||
fi
|
||||
|
||||
if [ "$1" = "build_then_client" ]; then
|
||||
if [ "$1" = "client" ]; then
|
||||
npm run build
|
||||
mocha --exit --require ts-node/register --bail server/tests/client.ts
|
||||
elif [ "$1" = "client" ]; then
|
||||
mocha --exit --require ts-node/register --bail server/tests/client.ts
|
||||
elif [ "$1" = "api" ]; then
|
||||
npm run build:server
|
||||
mocha --exit --require ts-node/register --bail server/tests/api/index.ts
|
||||
elif [ "$1" = "cli" ]; then
|
||||
npm run build:server
|
||||
mocha --exit --require ts-node/register --bail server/tests/cli/index.ts
|
||||
elif [ "$1" = "lint" ]; then
|
||||
cd client || exit -1
|
||||
|
|
Loading…
Reference in a new issue