X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Ftravis.sh;h=628039ab7170f9cf7ef0dd74ba70fe54a5b1c260;hb=fd28a0fc8833c8cfe1017a88fbda141130b2d263;hp=c459daf0becbb621e5660a87c50ce7b549300792;hpb=3bacf661647deef13c29653b14684703f1201f30;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/travis.sh b/scripts/travis.sh index c459daf0b..628039ab7 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -11,8 +11,11 @@ killall -q peertube || true if [ "$1" = "misc" ]; then npm run build -- --light-fr - mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts server/tests/activitypub.ts \ - server/tests/feeds/index.ts + mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts \ + server/tests/activitypub.ts \ + server/tests/feeds/index.ts \ + server/tests/misc-endpoints.ts \ + server/tests/helpers/index.ts elif [ "$1" = "api" ]; then npm run build:server mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index.ts @@ -29,9 +32,13 @@ elif [ "$1" = "api-3" ]; then npm run build:server mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-3.ts elif [ "$1" = "lint" ]; then + npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" + ( cd client npm run lint ) - - npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" +elif [ "$1" = "jest" ]; then + ( cd client + npm run test + ) fi