mirror of https://github.com/Chocobozzz/PeerTube
Build server files before test the api
parent
18530063fe
commit
1b6b475772
|
@ -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 New Issue