1
0
Fork 0

Build server files before test the api

This commit is contained in:
Chocobozzz 2017-10-31 17:33:23 +01:00
parent 18530063fe
commit 1b6b475772
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 5 additions and 7 deletions

View file

@ -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

View file

@ -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