]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/travis.sh
Add HTTP signature check before linked signature
[github/Chocobozzz/PeerTube.git] / scripts / travis.sh
index c2785ffa76bcd8adf797a70d35041900962367ea..5d195f902baae8f3de4abc6b52ff1fa4eedcb9a9 100755 (executable)
@@ -10,9 +10,9 @@ fi
 killall -q peertube || true
 
 if [ "$1" = "misc" ]; then
-    npm run build
+    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/feeds/index.ts server/tests/misc-endpoints.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 +29,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