X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Ftravis.sh;h=ae4a9f9260e0bbf4e7f11565d8bf2764d9107ceb;hb=e280dd0681440d05269d9aa54904d62064f2fa39;hp=c2785ffa76bcd8adf797a70d35041900962367ea;hpb=1297eb5db651a230474670c5da1517862fb9cc3e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/travis.sh b/scripts/travis.sh index c2785ffa7..ae4a9f926 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -10,9 +10,12 @@ fi killall -q peertube || true if [ "$1" = "misc" ]; then - npm run build - mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/client.ts server/tests/activitypub.ts \ - server/tests/feeds/index.ts + 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 \ + 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 @@ -28,10 +31,17 @@ elif [ "$1" = "api-2" ]; then 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" = "api-3" ]; then + npm run build:server + mocha --timeout 5000 --exit --require ts-node/register/type-check --bail server/tests/api/index-4.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