aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/travis.sh
diff options
context:
space:
mode:
authorbuoyantair <buoyantair@protonmail.com>2018-11-20 12:28:13 +0530
committerbuoyantair <buoyantair@protonmail.com>2018-11-20 12:28:13 +0530
commitbc22d60899e14631cba0fb6450f4e85fc9528293 (patch)
tree285fa55033bc065df803adc2e4e3142fdfdd7309 /scripts/travis.sh
parentb9f234371bfaf0d9cfa81e02fcea92cac1f9ae13 (diff)
parentd216b5387fb774d1355df3ace002f7be469bd450 (diff)
downloadPeerTube-bc22d60899e14631cba0fb6450f4e85fc9528293.tar.gz
PeerTube-bc22d60899e14631cba0fb6450f4e85fc9528293.tar.zst
PeerTube-bc22d60899e14631cba0fb6450f4e85fc9528293.zip
Merge branch 'develop' of https://github.com/Chocobozzz/PeerTube into move-utils-to-shared
Diffstat (limited to 'scripts/travis.sh')
-rwxr-xr-xscripts/travis.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 49b7233e1..509b40d87 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -11,28 +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 \ 14 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/client.ts \
15 server/tests/feeds/index.ts \ 15 server/tests/feeds/index.ts \
16 server/tests/misc-endpoints.ts \ 16 server/tests/misc-endpoints.ts \
17 server/tests/helpers/index.ts 17 server/tests/helpers/index.ts
18elif [ "$1" = "api" ]; then
19 npm run build:server
20 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts
21elif [ "$1" = "cli" ]; then 18elif [ "$1" = "cli" ]; then
22 npm run build:server 19 npm run build:server
23 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
24elif [ "$1" = "api-1" ]; then 21elif [ "$1" = "api-1" ]; then
25 npm run build:server 22 npm run build:server
26 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
27elif [ "$1" = "api-2" ]; then 24elif [ "$1" = "api-2" ]; then
28 npm run build:server 25 npm run build:server
29 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
30elif [ "$1" = "api-3" ]; then 27elif [ "$1" = "api-3" ]; then
31 npm run build:server 28 npm run build:server
32 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
33elif [ "$1" = "api-4" ]; then 30elif [ "$1" = "api-4" ]; then
34 npm run build:server 31 npm run build:server
35 mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-4.ts 32 mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/api/index-4.ts
36elif [ "$1" = "lint" ]; then 33elif [ "$1" = "lint" ]; then
37 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"
38 35