Split slow and fast api tests for travis

This commit is contained in:
Chocobozzz 2017-10-31 17:50:28 +01:00
parent c8dc45d733
commit 15f25480dd
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
5 changed files with 27 additions and 16 deletions

View File

@ -39,7 +39,8 @@ before_script:
matrix: matrix:
include: include:
- env: TEST_SUITE=client - env: TEST_SUITE=client
- env: TEST_SUITE=api - env: TEST_SUITE=api-fast
- env: TEST_SUITE=api-slow
- env: TEST_SUITE=cli - env: TEST_SUITE=cli
- env: TEST_SUITE=lint - env: TEST_SUITE=lint

View File

@ -14,6 +14,12 @@ elif [ "$1" = "api" ]; then
elif [ "$1" = "cli" ]; then elif [ "$1" = "cli" ]; then
npm run build:server npm run build:server
mocha --exit --require ts-node/register --bail server/tests/cli/index.ts mocha --exit --require ts-node/register --bail server/tests/cli/index.ts
elif [ "$1" = "api-fast" ]; then
npm run build:server
mocha --exit --require ts-node/register --bail server/tests/api/index-fast.ts
elif [ "$1" = "api-slow" ]; then
npm run build:server
mocha --exit --require ts-node/register --bail server/tests/api/index-slow.ts
elif [ "$1" = "lint" ]; then elif [ "$1" = "lint" ]; then
cd client || exit -1 cd client || exit -1
npm run lint || exit -1 npm run lint || exit -1

View File

@ -0,0 +1,13 @@
// Order of the tests we want to execute
import './config'
import './check-params'
import './friends-basic'
import './users'
import './single-pod'
import './video-abuse'
import './video-blacklist'
import './video-blacklist-management'
import './video-description'
import './video-privacy'
import './services'
import './request-schedulers'

View File

@ -0,0 +1,4 @@
// Order of the tests we want to execute
import './multiple-pods'
import './friends-advanced'
import './video-transcoder'

View File

@ -1,16 +1,3 @@
// Order of the tests we want to execute // Order of the tests we want to execute
import './config' import './index-fast'
import './check-params' import './index-slow'
import './friends-basic'
import './users'
import './single-pod'
import './video-abuse'
import './video-blacklist'
import './video-blacklist-management'
import './video-description'
import './video-privacy'
import './multiple-pods'
import './services'
import './request-schedulers'
import './friends-advanced'
import './video-transcoder'