diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/travis.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh index 390500ed4..c2785ffa7 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh | |||
@@ -12,19 +12,22 @@ killall -q peertube || true | |||
12 | if [ "$1" = "misc" ]; then | 12 | if [ "$1" = "misc" ]; then |
13 | npm run build | 13 | npm run build |
14 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts server/tests/activitypub.ts \ | 14 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts server/tests/activitypub.ts \ |
15 | server/tests/feeds/feeds.ts | 15 | server/tests/feeds/index.ts |
16 | elif [ "$1" = "api" ]; then | 16 | elif [ "$1" = "api" ]; then |
17 | npm run build:server | 17 | npm run build:server |
18 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts | 18 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts |
19 | elif [ "$1" = "cli" ]; then | 19 | elif [ "$1" = "cli" ]; then |
20 | npm run build:server | 20 | npm run build:server |
21 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/cli/index.ts | 21 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/cli/index.ts |
22 | elif [ "$1" = "api-fast" ]; then | 22 | elif [ "$1" = "api-1" ]; then |
23 | npm run build:server | 23 | npm run build:server |
24 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-fast.ts | 24 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-1.ts |
25 | elif [ "$1" = "api-slow" ]; then | 25 | elif [ "$1" = "api-2" ]; then |
26 | npm run build:server | 26 | npm run build:server |
27 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-slow.ts | 27 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-2.ts |
28 | elif [ "$1" = "api-3" ]; then | ||
29 | npm run build:server | ||
30 | mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-3.ts | ||
28 | elif [ "$1" = "lint" ]; then | 31 | elif [ "$1" = "lint" ]; then |
29 | ( cd client | 32 | ( cd client |
30 | npm run lint | 33 | npm run lint |