X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fci.sh;h=7854d88fc7b78131c69392cb3dff4f8d6f754106;hb=efc84bdc494a3b102e4aa8bc2d24a3766bd0d751;hp=c023ddf98ef5de3f43f5cfbdd903c67264513ce3;hpb=4c8ef0ec684f5dd1856ec751420b1e85369fd1bf;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/ci.sh b/scripts/ci.sh index c023ddf98..7854d88fc 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -9,8 +9,10 @@ fi killall -q peertube || true +perl -0777 -i -pe 's#proxy:(\n\s+)enabled: false\n\s+url: ""#proxy:$1enabled: true$1url: "http://188.165.225.149:7899"#' config/test.yaml + if [ "$1" = "misc" ]; then - npm run build -- --light-fr + npm run build -- --light mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/client.ts \ server/tests/feeds/index.ts \ server/tests/misc-endpoints.ts \ @@ -32,10 +34,16 @@ elif [ "$1" = "api-3" ]; then elif [ "$1" = "api-4" ]; then npm run build:server sh ./server/tests/api/ci-4.sh 2 +elif [ "$1" = "external-plugins" ]; then + npm run build:server + mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/external-plugins/index.ts elif [ "$1" = "lint" ]; then - npm run tslint -- --project ./tsconfig.json -c ./tslint.json server.ts "server/**/*.ts" "shared/**/*.ts" + npm run eslint -- --ext .ts "server/**/*.ts" "shared/**/*.ts" + npm run swagger-cli -- validate support/doc/api/openapi.yaml ( cd client npm run lint ) fi + +git checkout -- config/test.yaml