X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fci.sh;h=2bacf2a2e18d23c34de46f7081bce669ec2b9336;hb=3318147300b4f998adf728eb0a5a14a4c1829c51;hp=a628cbcedb34e4832df075fa67dc97e670a11bb5;hpb=98846837ebb6bfbed3866eee5258946b35769651;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/ci.sh b/scripts/ci.sh index a628cbced..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)