Skip to content

Commit

Permalink
test: revert to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
YC committed Dec 27, 2022
1 parent 497046d commit 9cce0ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/run_api_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ 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

# 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
Expand Down

0 comments on commit 9cce0ac

Please sign in to comment.