diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-21 15:59:57 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-21 16:46:59 +0100 |
commit | be7ca0c6b9c51c639bac7d2da94599893e7b1c01 (patch) | |
tree | 328eadc393cd7b052f8366f888e968b561ad86c2 /scripts/ci.sh | |
parent | 5e0171daaa00d7d1409b1d2408f03468e895459b (diff) | |
download | PeerTube-be7ca0c6b9c51c639bac7d2da94599893e7b1c01.tar.gz PeerTube-be7ca0c6b9c51c639bac7d2da94599893e7b1c01.tar.zst PeerTube-be7ca0c6b9c51c639bac7d2da94599893e7b1c01.zip |
Use a proxy for youtube-dl to avoid travis errors
Diffstat (limited to 'scripts/ci.sh')
-rwxr-xr-x | scripts/ci.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
9 | 9 | ||
10 | killall -q peertube || true | 10 | killall -q peertube || true |
11 | 11 | ||
12 | perl -0777 -i -pe 's#(proxy:\n\s+enabled: false\n\s+)url: ""#$1url: "'"$PROXY_URL"'"#' config/test.yaml | ||
13 | |||
12 | if [ "$1" = "misc" ]; then | 14 | if [ "$1" = "misc" ]; then |
13 | npm run build -- --light-fr | 15 | npm run build -- --light-fr |
14 | mocha --timeout 5000 --exit --require ts-node/register --require tsconfig-paths/register --bail server/tests/client.ts \ | 16 | 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 | |||
40 | npm run lint | 42 | npm run lint |
41 | ) | 43 | ) |
42 | fi | 44 | fi |
45 | |||
46 | git checkout -- config/test.yaml | ||