]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/ci.sh
Translated using Weblate (Norwegian Bokmål)
[github/Chocobozzz/PeerTube.git] / scripts / ci.sh
index a45f91a6b3429d44ca8b4a693468851addb97ed3..8b984093cf84eeab4c57d1987727b8e8ae48b6d7 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"
 }
 
@@ -56,6 +56,10 @@ elif [ "$1" = "client" ]; then
 
     MOCHA_PARALLEL=true runTest "$1" $((2*$speedFactor)) $feedsFiles $helperFiles $miscFiles $pluginFiles $libFiles
 elif [ "$1" = "cli-plugin" ]; then
+    # Simulate HTML
+    mkdir -p "./client/dist/en-US/"
+    cp "./client/src/index.html" "./client/dist/en-US/index.html"
+
     npm run build:server
     npm run setup:cli
 
@@ -84,8 +88,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