aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/travis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-xscripts/travis.sh13
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
12if [ "$1" = "misc" ]; then 12if [ "$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
16elif [ "$1" = "api" ]; then 16elif [ "$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
19elif [ "$1" = "cli" ]; then 19elif [ "$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
22elif [ "$1" = "api-fast" ]; then 22elif [ "$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
25elif [ "$1" = "api-slow" ]; then 25elif [ "$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
28elif [ "$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
28elif [ "$1" = "lint" ]; then 31elif [ "$1" = "lint" ]; then
29 ( cd client 32 ( cd client
30 npm run lint 33 npm run lint