.PHONY: test test-image test-setup

test-setup:
	docker pull dokku/wait
	docker pull postgres:17.5
	docker pull python:3.13-trixie

test-image:
	docker build --no-cache -t xivo/xivo-purge-db ..
	docker build --no-cache -t xivo-purge-db-test -f Dockerfile ..

test: test-image
	docker compose run sync
	docker compose run purgedb

distclean:
	docker compose kill
	docker compose rm -f
