INTEGRATION_PATH := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))

.PHONY: run-integration-test-docker-compose
run-integration-test-docker-compose:
	docker-compose -f $(INTEGRATION_PATH)/docker-compose.yml down -v --remove-orphans
	docker-compose -f $(INTEGRATION_PATH)/docker-compose.yml build --force-rm
	docker-compose -f $(INTEGRATION_PATH)/docker-compose.yml run --rm integration_tests go test ./integration_tests/... -v -tags=integration
	docker-compose -f $(INTEGRATION_PATH)/docker-compose.yml down -v --remove-orphans
