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:
parent
497046d0a4
commit
9cce0ac2e1
@ -39,7 +39,7 @@ cleanup() {
|
|||||||
kill -TERM "$pid"
|
kill -TERM "$pid"
|
||||||
fi
|
fi
|
||||||
if [ "${docker_down-0}" -eq 1 ]; then
|
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
|
fi
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
@ -47,11 +47,11 @@ trap cleanup EXIT
|
|||||||
# Initialise test data
|
# Initialise test data
|
||||||
case $1 in
|
case $1 in
|
||||||
postgres|mysql|mariadb)
|
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 volume rm "testing_wakapi-$1"
|
||||||
|
|
||||||
docker_down=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
|
if [ "$1" == "mariadb" ]; then
|
||||||
config="config.mysql.yml"
|
config="config.mysql.yml"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user