X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fci.sh;h=b0b76ca99e1b978f963ce3009b474b92d5271bfb;hb=cc4bf76c13e38e9065d49161b6e0485657424577;hp=71b1be53b78e39db3ee00f4879de3a51d5c94aef;hpb=171efc48e67498406feb6d7873b3482b41505515;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/ci.sh b/scripts/ci.sh index 71b1be53b..b0b76ca99 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 () { @@ -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) @@ -89,9 +90,10 @@ elif [ "$1" = "api-4" ]; then moderationFiles=$(findTestFiles ./dist/server/tests/api/moderation) redundancyFiles=$(findTestFiles ./dist/server/tests/api/redundancy) + objectStorageFiles=$(findTestFiles ./dist/server/tests/api/object-storage) activitypubFiles=$(findTestFiles ./dist/server/tests/api/activitypub) - MOCHA_PARALLEL=true TS_NODE_FILES=true runTest "$1" 2 $moderationFiles $redundancyFiles $activitypubFiles + MOCHA_PARALLEL=true runTest "$1" 2 $moderationFiles $redundancyFiles $activitypubFiles $objectStorageFiles elif [ "$1" = "external-plugins" ]; then npm run build:server