]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/clean/server/test.sh
6 dbname
="peertube_test$1"
8 dropdb
--if-exists "$dbname" 2>&1
10 createdb
-O peertube
"$dbname"
11 psql
-c "CREATE EXTENSION pg_trgm;" "$dbname" &
12 psql
-c "CREATE EXTENSION unaccent;" "$dbname" &
16 rm -rf "./test$1" "./config/local-test.json" "./config/local-test-$1.json" ~
/.config
/PeerTube
/CLI
-$1
23 if [ ! -z ${GITLAB_CI+x} ]; then
27 redis
-cli -h "$host" KEYS
"bull-localhost:$port*" | grep -v empty
| xargs --no-run-if-empty redis
-cli -h "$host" DEL
28 redis
-cli -h "$host" KEYS
"redis-localhost:$port*" | grep -v empty
| xargs --no-run-if-empty redis
-cli -h "$host" DEL
29 redis
-cli -h "$host" KEYS
"*redis-localhost:$port-" | grep -v empty
| xargs --no-run-if-empty redis
-cli -h "$host" DEL
34 if [ ! -z ${1+x} ]; then