]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/ci.sh
Translated using Weblate (Croatian)
[github/Chocobozzz/PeerTube.git] / scripts / ci.sh
index a45f91a6b3429d44ca8b4a693468851addb97ed3..8fdbe8f26ad1c89cf31ffc11f599a74e6ed5977e 100755 (executable)
@@ -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