aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/travis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-xscripts/travis.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 5d195f902..509b40d87 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -11,23 +11,25 @@ killall -q peertube || true
11 11
12if [ "$1" = "misc" ]; then 12if [ "$1" = "misc" ]; then
13 npm run build -- --light-fr 13 npm run build -- --light-fr
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 --bail server/tests/client.ts \
15 server/tests/feeds/index.ts server/tests/misc-endpoints.ts 15 server/tests/feeds/index.ts \
16elif [ "$1" = "api" ]; then 16 server/tests/misc-endpoints.ts \
17 npm run build:server 17 server/tests/helpers/index.ts
18 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts
19elif [ "$1" = "cli" ]; then 18elif [ "$1" = "cli" ]; then
20 npm run build:server 19 npm run build:server
21 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/cli/index.ts 20 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/cli/index.ts
22elif [ "$1" = "api-1" ]; then 21elif [ "$1" = "api-1" ]; then
23 npm run build:server 22 npm run build:server
24 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-1.ts 23 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/api/index-1.ts
25elif [ "$1" = "api-2" ]; then 24elif [ "$1" = "api-2" ]; then
26 npm run build:server 25 npm run build:server
27 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-2.ts 26 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/api/index-2.ts
28elif [ "$1" = "api-3" ]; then 27elif [ "$1" = "api-3" ]; then
29 npm run build:server 28 npm run build:server
30 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-3.ts 29 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/api/index-3.ts
30elif [ "$1" = "api-4" ]; then
31 npm run build:server
32 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/api/index-4.ts
31elif [ "$1" = "lint" ]; then 33elif [ "$1" = "lint" ]; then
32 npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" 34 npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts"
33 35