diff options
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-x | scripts/travis.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh index e919f18a4..f6cdda463 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh | |||
@@ -5,14 +5,14 @@ if [ $# -eq 0 ]; then | |||
5 | exit -1 | 5 | exit -1 |
6 | fi | 6 | fi |
7 | 7 | ||
8 | if [ "$1" = "build_then_client" ]; then | 8 | if [ "$1" = "client" ]; then |
9 | npm run build | 9 | npm run build |
10 | mocha --exit --require ts-node/register --bail server/tests/client.ts | 10 | mocha --exit --require ts-node/register --bail server/tests/client.ts |
11 | elif [ "$1" = "client" ]; then | ||
12 | mocha --exit --require ts-node/register --bail server/tests/client.ts | ||
13 | elif [ "$1" = "api" ]; then | 11 | elif [ "$1" = "api" ]; then |
12 | npm run build:server | ||
14 | mocha --exit --require ts-node/register --bail server/tests/api/index.ts | 13 | mocha --exit --require ts-node/register --bail server/tests/api/index.ts |
15 | elif [ "$1" = "cli" ]; then | 14 | elif [ "$1" = "cli" ]; then |
15 | npm run build:server | ||
16 | mocha --exit --require ts-node/register --bail server/tests/cli/index.ts | 16 | mocha --exit --require ts-node/register --bail server/tests/cli/index.ts |
17 | elif [ "$1" = "lint" ]; then | 17 | elif [ "$1" = "lint" ]; then |
18 | cd client || exit -1 | 18 | cd client || exit -1 |