From be7ca0c6b9c51c639bac7d2da94599893e7b1c01 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 21 Jan 2020 15:59:57 +0100 Subject: Use a proxy for youtube-dl to avoid travis errors --- scripts/ci.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/ci.sh b/scripts/ci.sh index 270a2b5bc..7b5c3f2bb 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -9,6 +9,8 @@ fi killall -q peertube || true +perl -0777 -i -pe 's#(proxy:\n\s+enabled: false\n\s+)url: ""#$1url: "'"$PROXY_URL"'"#' config/test.yaml + if [ "$1" = "misc" ]; then npm run build -- --light-fr mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/client.ts \ @@ -40,3 +42,5 @@ elif [ "$1" = "lint" ]; then npm run lint ) fi + +git checkout -- config/test.yaml -- cgit v1.2.3