X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fci.sh;h=5f1230d33c0f6752813ca4a82af50d10d54cf966;hb=7b51ede977c299a74728171d8c124bcc4cbba6ea;hp=2cb3b96db74570ce24a233f71c62d9808f674d40;hpb=fd5fa94bbc808e3ebb7a2e6bca636f2607566b52;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/ci.sh b/scripts/ci.sh index 2cb3b96db..5f1230d33 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -7,8 +7,6 @@ if [ $# -eq 0 ]; then exit -1 fi -killall -q peertube || true - retries=3 runTest () { @@ -25,7 +23,7 @@ runTest () { joblog="$jobname-ci.log" parallel -j $jobs --retries $retries \ - "echo Trying {} >> $joblog; npm run mocha -- -c --timeout 30000 --exit --require ./dist/server/tests/register.js --bail {}" \ + "echo Trying {} >> $joblog; npm run mocha -- -c --timeout 30000 --exit --bail {}" \ ::: $files cat "$joblog" | uniq -c @@ -42,7 +40,10 @@ findTestFiles () { find $1 -type f -name "*.js" $exception | xargs echo } -if [ "$1" = "client" ]; then +if [ "$1" = "types-package" ]; then + npm run generate-types-package 0.0.0 + npm run tsc -- --noEmit --esModuleInterop packages/types/tests/test.ts +elif [ "$1" = "client" ]; then npm run build feedsFiles=$(findTestFiles ./dist/server/tests/feeds) @@ -93,6 +94,12 @@ elif [ "$1" = "api-4" ]; then activitypubFiles=$(findTestFiles ./dist/server/tests/api/activitypub) MOCHA_PARALLEL=true runTest "$1" 2 $moderationFiles $redundancyFiles $activitypubFiles $objectStorageFiles +elif [ "$1" = "api-5" ]; then + npm run build:server + + transcodingFiles=$(findTestFiles ./dist/server/tests/api/transcoding) + + MOCHA_PARALLEL=true runTest "$1" 2 $transcodingFiles elif [ "$1" = "external-plugins" ]; then npm run build:server