1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

test: revert to docker compose

This commit is contained in:
Steven Tang 2022-12-27 20:42:55 +11:00
parent 497046d0a4
commit 9cce0ac2e1
No known key found for this signature in database
GPG Key ID: 1597520C734BAE66

View File

@ -39,7 +39,7 @@ cleanup() {
kill -TERM "$pid"
fi
if [ "${docker_down-0}" -eq 1 ]; then
docker-compose -f "$script_dir/docker-compose.yml" down
docker compose -f "$script_dir/docker-compose.yml" down
fi
}
trap cleanup EXIT
@ -47,11 +47,11 @@ trap cleanup EXIT
# Initialise test data
case $1 in
postgres|mysql|mariadb)
docker-compose -f "$script_dir/docker-compose.yml" down
docker compose -f "$script_dir/docker-compose.yml" down
docker volume rm "testing_wakapi-$1"
docker_down=1
docker-compose -f "$script_dir/docker-compose.yml" up --wait -d "$1"
docker compose -f "$script_dir/docker-compose.yml" up --wait -d "$1"
if [ "$1" == "mariadb" ]; then
config="config.mysql.yml"
else