diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-18 11:17:35 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-18 11:21:50 +0100 |
commit | 57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c (patch) | |
tree | fcf12670d643ec4a3b5eccdfa834227c0417d988 /scripts/ci.sh | |
parent | 2e3f7a5a6fbae276d3ba1cb1b08289917ec7604b (diff) | |
download | PeerTube-57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c.tar.gz PeerTube-57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c.tar.zst PeerTube-57e4e1c1a95c3a81a967f54ecc2a510d8b0e129c.zip |
Don't store remote rates of remote videos
In the future we'll stop to expose all available rates to improve users
privacy
Diffstat (limited to 'scripts/ci.sh')
-rwxr-xr-x | scripts/ci.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/ci.sh b/scripts/ci.sh index 3d23f0297..a45f91a6b 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh | |||
@@ -8,6 +8,7 @@ if [ $# -eq 0 ]; then | |||
8 | fi | 8 | fi |
9 | 9 | ||
10 | retries=3 | 10 | retries=3 |
11 | speedFactor="${2:-1}" | ||
11 | 12 | ||
12 | runTest () { | 13 | runTest () { |
13 | jobname=$1 | 14 | jobname=$1 |
@@ -53,7 +54,7 @@ elif [ "$1" = "client" ]; then | |||
53 | # Not in their own task, they need an index.html | 54 | # Not in their own task, they need an index.html |
54 | pluginFiles="./dist/server/tests/plugins/html-injection.js ./dist/server/tests/api/server/plugins.js" | 55 | pluginFiles="./dist/server/tests/plugins/html-injection.js ./dist/server/tests/api/server/plugins.js" |
55 | 56 | ||
56 | MOCHA_PARALLEL=true runTest "$1" 2 $feedsFiles $helperFiles $miscFiles $pluginFiles $libFiles | 57 | MOCHA_PARALLEL=true runTest "$1" $((2*$speedFactor)) $feedsFiles $helperFiles $miscFiles $pluginFiles $libFiles |
57 | elif [ "$1" = "cli-plugin" ]; then | 58 | elif [ "$1" = "cli-plugin" ]; then |
58 | npm run build:server | 59 | npm run build:server |
59 | npm run setup:cli | 60 | npm run setup:cli |
@@ -61,7 +62,7 @@ elif [ "$1" = "cli-plugin" ]; then | |||
61 | pluginsFiles=$(findTestFiles ./dist/server/tests/plugins html-injection.js) | 62 | pluginsFiles=$(findTestFiles ./dist/server/tests/plugins html-injection.js) |
62 | cliFiles=$(findTestFiles ./dist/server/tests/cli) | 63 | cliFiles=$(findTestFiles ./dist/server/tests/cli) |
63 | 64 | ||
64 | MOCHA_PARALLEL=true runTest "$1" 2 $pluginsFiles | 65 | MOCHA_PARALLEL=true runTest "$1" $((2*$speedFactor)) $pluginsFiles |
65 | runTest "$1" 1 $cliFiles | 66 | runTest "$1" 1 $cliFiles |
66 | elif [ "$1" = "api-1" ]; then | 67 | elif [ "$1" = "api-1" ]; then |
67 | npm run build:server | 68 | npm run build:server |
@@ -70,7 +71,7 @@ elif [ "$1" = "api-1" ]; then | |||
70 | notificationsFiles=$(findTestFiles ./dist/server/tests/api/notifications) | 71 | notificationsFiles=$(findTestFiles ./dist/server/tests/api/notifications) |
71 | searchFiles=$(findTestFiles ./dist/server/tests/api/search) | 72 | searchFiles=$(findTestFiles ./dist/server/tests/api/search) |
72 | 73 | ||
73 | MOCHA_PARALLEL=true runTest "$1" 3 $notificationsFiles $searchFiles $checkParamFiles | 74 | MOCHA_PARALLEL=true runTest "$1" $((3*$speedFactor)) $notificationsFiles $searchFiles $checkParamFiles |
74 | elif [ "$1" = "api-2" ]; then | 75 | elif [ "$1" = "api-2" ]; then |
75 | npm run build:server | 76 | npm run build:server |
76 | 77 | ||
@@ -78,13 +79,13 @@ elif [ "$1" = "api-2" ]; then | |||
78 | serverFiles=$(findTestFiles ./dist/server/tests/api/server plugins.js) | 79 | serverFiles=$(findTestFiles ./dist/server/tests/api/server plugins.js) |
79 | usersFiles=$(findTestFiles ./dist/server/tests/api/users) | 80 | usersFiles=$(findTestFiles ./dist/server/tests/api/users) |
80 | 81 | ||
81 | MOCHA_PARALLEL=true runTest "$1" 3 $liveFiles $serverFiles $usersFiles | 82 | MOCHA_PARALLEL=true runTest "$1" $((3*$speedFactor)) $liveFiles $serverFiles $usersFiles |
82 | elif [ "$1" = "api-3" ]; then | 83 | elif [ "$1" = "api-3" ]; then |
83 | npm run build:server | 84 | npm run build:server |
84 | 85 | ||
85 | videosFiles=$(findTestFiles ./dist/server/tests/api/videos) | 86 | videosFiles=$(findTestFiles ./dist/server/tests/api/videos) |
86 | 87 | ||
87 | MOCHA_PARALLEL=true runTest "$1" 3 $videosFiles | 88 | MOCHA_PARALLEL=true runTest "$1" $((3*$speedFactor)) $videosFiles |
88 | elif [ "$1" = "api-4" ]; then | 89 | elif [ "$1" = "api-4" ]; then |
89 | npm run build:server | 90 | npm run build:server |
90 | 91 | ||
@@ -93,13 +94,13 @@ elif [ "$1" = "api-4" ]; then | |||
93 | objectStorageFiles=$(findTestFiles ./dist/server/tests/api/object-storage) | 94 | objectStorageFiles=$(findTestFiles ./dist/server/tests/api/object-storage) |
94 | activitypubFiles=$(findTestFiles ./dist/server/tests/api/activitypub) | 95 | activitypubFiles=$(findTestFiles ./dist/server/tests/api/activitypub) |
95 | 96 | ||
96 | MOCHA_PARALLEL=true runTest "$1" 2 $moderationFiles $redundancyFiles $activitypubFiles $objectStorageFiles | 97 | MOCHA_PARALLEL=true runTest "$1" $((2*$speedFactor)) $moderationFiles $redundancyFiles $activitypubFiles $objectStorageFiles |
97 | elif [ "$1" = "api-5" ]; then | 98 | elif [ "$1" = "api-5" ]; then |
98 | npm run build:server | 99 | npm run build:server |
99 | 100 | ||
100 | transcodingFiles=$(findTestFiles ./dist/server/tests/api/transcoding) | 101 | transcodingFiles=$(findTestFiles ./dist/server/tests/api/transcoding) |
101 | 102 | ||
102 | MOCHA_PARALLEL=true runTest "$1" 2 $transcodingFiles | 103 | MOCHA_PARALLEL=true runTest "$1" $((2*$speedFactor)) $transcodingFiles |
103 | elif [ "$1" = "external-plugins" ]; then | 104 | elif [ "$1" = "external-plugins" ]; then |
104 | npm run build:server | 105 | npm run build:server |
105 | 106 | ||