X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fci.sh;h=2bacf2a2e18d23c34de46f7081bce669ec2b9336;hb=3318147300b4f998adf728eb0a5a14a4c1829c51;hp=7ad6f38e95f5e5f5be740f8edf4dc0ccf0461d94;hpb=9b3294a8496c89c7880054de1f1f09c9990f1b46;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/ci.sh b/scripts/ci.sh index 7ad6f38e9..2bacf2a2e 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -23,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 @@ -40,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) @@ -98,8 +101,6 @@ elif [ "$1" = "external-plugins" ]; then runTest "$1" 1 $externalPluginsFiles elif [ "$1" = "lint" ]; then - npm run build:server - npm run eslint -- --ext .ts "./server/**/*.ts" "shared/**/*.ts" "scripts/**/*.ts" npm run swagger-cli -- validate support/doc/api/openapi.yaml