]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix CI
authorChocobozzz <me@florianbigard.com>
Thu, 17 Mar 2022 09:50:26 +0000 (10:50 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 17 Mar 2022 09:50:26 +0000 (10:50 +0100)
scripts/ci.sh
server/tests/api/server/jobs.ts

index 5f1230d33c0f6752813ca4a82af50d10d54cf966..3d23f02978c3fc866a8b494dbf753f38fd6958ad 100755 (executable)
@@ -50,8 +50,8 @@ elif [ "$1" = "client" ]; then
     helperFiles=$(findTestFiles ./dist/server/tests/helpers)
     libFiles=$(findTestFiles ./dist/server/tests/lib)
     miscFiles="./dist/server/tests/client.js ./dist/server/tests/misc-endpoints.js"
-    # Not in plugin task, it needs an index.html
-    pluginFiles="./dist/server/tests/plugins/html-injection.js"
+    # Not in their own task, they need an index.html
+    pluginFiles="./dist/server/tests/plugins/html-injection.js ./dist/server/tests/api/server/plugins.js"
 
     MOCHA_PARALLEL=true runTest "$1" 2 $feedsFiles $helperFiles $miscFiles $pluginFiles $libFiles
 elif [ "$1" = "cli-plugin" ]; then
@@ -75,7 +75,7 @@ elif [ "$1" = "api-2" ]; then
     npm run build:server
 
     liveFiles=$(findTestFiles ./dist/server/tests/api/live)
-    serverFiles=$(findTestFiles ./dist/server/tests/api/server)
+    serverFiles=$(findTestFiles ./dist/server/tests/api/server plugins.js)
     usersFiles=$(findTestFiles ./dist/server/tests/api/users)
 
     MOCHA_PARALLEL=true runTest "$1" 3 $liveFiles $serverFiles $usersFiles
index 6cc88a12362b3d52b08f917169395300b076ecc3..96ab2a5765f066b756a36d1cef8a9bac62fc108b 100644 (file)
@@ -3,6 +3,7 @@
 import 'mocha'
 import * as chai from 'chai'
 import { dateIsValid } from '@server/tests/shared'
+import { wait } from '@shared/core-utils'
 import {
   cleanupTests,
   createMultipleServers,
@@ -11,8 +12,6 @@ import {
   setAccessTokensToServers,
   waitJobs
 } from '@shared/server-commands'
-import { wait } from '@shared/core-utils'
-import { uuid } from 'short-uuid'
 
 const expect = chai.expect