X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fci.sh;h=aea009d9f48a795905006159b31d50326cee60da;hb=7cd1b12c19d0589d1d692ed0571ca0800f028aea;hp=270a2b5bc026d8d72033756095b66d99474ead5d;hpb=a3705089fa57eeaaf7f38a2ebccc81eff069dcb5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/ci.sh b/scripts/ci.sh index 270a2b5bc..aea009d9f 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 \ @@ -33,10 +35,12 @@ elif [ "$1" = "api-4" ]; then npm run build:server sh ./server/tests/api/ci-4.sh 2 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