X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fci.sh;h=8fdbe8f26ad1c89cf31ffc11f599a74e6ed5977e;hb=38b4e733d2a11bf0e9164bc178f01cb18b15f6bd;hp=a45f91a6b3429d44ca8b4a693468851addb97ed3;hpb=57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/ci.sh b/scripts/ci.sh index a45f91a6b..8fdbe8f26 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -27,7 +27,7 @@ runTest () { "echo Trying {} >> $joblog; npm run mocha -- -c --timeout 30000 --exit --bail {}" \ ::: $files - cat "$joblog" | uniq -c + cat "$joblog" | sort | uniq -c rm "$joblog" } @@ -84,8 +84,9 @@ elif [ "$1" = "api-3" ]; then npm run build:server videosFiles=$(findTestFiles ./dist/server/tests/api/videos) + viewsFiles=$(findTestFiles ./dist/server/tests/api/views) - MOCHA_PARALLEL=true runTest "$1" $((3*$speedFactor)) $videosFiles + MOCHA_PARALLEL=true runTest "$1" $((3*$speedFactor)) $viewsFiles $videosFiles elif [ "$1" = "api-4" ]; then npm run build:server