From 48f07b4a4091cb10dc4d179118e155f3a118dca8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Apr 2019 08:50:52 +0200 Subject: All API tests in parallel --- server/tests/api/travis-2.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/tests/api/travis-2.sh (limited to 'server/tests/api/travis-2.sh') diff --git a/server/tests/api/travis-2.sh b/server/tests/api/travis-2.sh new file mode 100644 index 000000000..abeb48144 --- /dev/null +++ b/server/tests/api/travis-2.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +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 \ + $serverFiles $usersFiles -- cgit v1.2.3 From f88392cf680c30943f91d79d96e65277dfb0c7f0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 May 2019 15:37:31 +0200 Subject: Decrease max parallel tests for travis --- server/tests/api/travis-2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/tests/api/travis-2.sh') diff --git a/server/tests/api/travis-2.sh b/server/tests/api/travis-2.sh index abeb48144..82c1864b4 100644 --- a/server/tests/api/travis-2.sh +++ b/server/tests/api/travis-2.sh @@ -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 -- cgit v1.2.3