aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-19 17:08:18 +0100
committerChocobozzz <me@florianbigard.com>2018-11-19 17:08:18 +0100
commitd175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e (patch)
tree1c313c3a3e0680101516dea3a787cd307006c76d /scripts
parent0b2f03d3712f438f67eccf86b67acd047284f9b4 (diff)
downloadPeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.tar.gz
PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.tar.zst
PeerTube-d175a6f7ab9dd53e36f9f52769ac02dbfdc57e3e.zip
Cleanup tests imports
Diffstat (limited to 'scripts')
-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