mirror of https://github.com/Chocobozzz/PeerTube
Decrease max parallel tests for travis
parent
48f07b4a40
commit
f88392cf68
|
@ -20,16 +20,16 @@ elif [ "$1" = "cli" ]; then
|
|||
mocha --timeout 5000 --exit --require ts-node/register --bail server/tests/cli/index.ts
|
||||
elif [ "$1" = "api-1" ]; then
|
||||
npm run build:server
|
||||
sh ./server/tests/api/travis-1.sh
|
||||
sh ./server/tests/api/travis-1.sh 2
|
||||
elif [ "$1" = "api-2" ]; then
|
||||
npm run build:server
|
||||
sh ./server/tests/api/travis-2.sh
|
||||
sh ./server/tests/api/travis-2.sh 2
|
||||
elif [ "$1" = "api-3" ]; then
|
||||
npm run build:server
|
||||
sh ./server/tests/api/travis-3.sh
|
||||
sh ./server/tests/api/travis-3.sh 2
|
||||
elif [ "$1" = "api-4" ]; then
|
||||
npm run build:server
|
||||
sh ./server/tests/api/travis-4.sh
|
||||
sh ./server/tests/api/travis-4.sh 2
|
||||
elif [ "$1" = "lint" ]; then
|
||||
npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts"
|
||||
|
||||
|
|
|
@ -6,5 +6,5 @@ checkParamFiles=$(find server/tests/api/check-params -type f | grep -v index.ts
|
|||
notificationsFiles=$(find server/tests/api/notifications -type f | grep -v index.ts | xargs echo)
|
||||
searchFiles=$(find server/tests/api/search -type f | grep -v index.ts | xargs echo)
|
||||
|
||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel 3 --timeout 5000 --exit --require ts-node/register --bail \
|
||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel $1 --timeout 5000 --exit --require ts-node/register --bail \
|
||||
$notificationsFiles $searchFiles $checkParamFiles
|
||||
|
|
|
@ -5,5 +5,5 @@ set -eu
|
|||
serverFiles=$(find server/tests/api/server -type f | grep -v index.ts | xargs echo)
|
||||
usersFiles=$(find server/tests/api/users -type f | grep -v index.ts | xargs echo)
|
||||
|
||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel 3 --timeout 5000 --exit --require ts-node/register --bail \
|
||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel $1 --timeout 5000 --exit --require ts-node/register --bail \
|
||||
$serverFiles $usersFiles
|
||||
|
|
|
@ -4,5 +4,5 @@ set -eu
|
|||
|
||||
videosFiles=$(find server/tests/api/videos -type f | grep -v index.ts | xargs echo)
|
||||
|
||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel 3 --timeout 5000 --exit --require ts-node/register --bail \
|
||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel $1 --timeout 5000 --exit --require ts-node/register --bail \
|
||||
$videosFiles
|
||||
|
|
|
@ -5,5 +5,5 @@ set -eu
|
|||
redundancyFiles=$(find server/tests/api/redundancy -type f | grep -v index.ts | xargs echo)
|
||||
activitypubFiles=$(find server/tests/api/activitypub -type f | grep -v index.ts | xargs echo)
|
||||
|
||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel 3 --timeout 5000 --exit --require ts-node/register --bail \
|
||||
MOCHA_PARALLEL=true mocha-parallel-tests --max-parallel $1 --timeout 5000 --exit --require ts-node/register --bail \
|
||||
$redundancyFiles $activitypubFiles
|
||||
|
|
Loading…
Reference in New Issue