aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/travis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-xscripts/travis.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 5d195f902..ae4a9f926 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -11,8 +11,11 @@ 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/type-check --bail server/tests/client.ts \
15 server/tests/feeds/index.ts server/tests/misc-endpoints.ts 15 server/tests/activitypub.ts \
16 server/tests/feeds/index.ts \
17 server/tests/misc-endpoints.ts \
18 server/tests/helpers/index.ts
16elif [ "$1" = "api" ]; then 19elif [ "$1" = "api" ]; then
17 npm run build:server 20 npm run build:server
18 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts 21 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts
@@ -28,6 +31,9 @@ elif [ "$1" = "api-2" ]; then
28elif [ "$1" = "api-3" ]; then 31elif [ "$1" = "api-3" ]; then
29 npm run build:server 32 npm run build:server
30 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-3.ts 33 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-3.ts
34elif [ "$1" = "api-3" ]; then
35 npm run build:server
36 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-4.ts
31elif [ "$1" = "lint" ]; then 37elif [ "$1" = "lint" ]; then
32 npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" 38 npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts"
33 39