From 6d460b176fe1913b6d08e4888eef6ebc597d3012 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 14 Feb 2020 12:11:53 -0800 Subject: [PATCH] Clean minio before s3 tests --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 412398c..2cf3acc 100644 --- a/Makefile +++ b/Makefile @@ -34,11 +34,11 @@ test-arm: build-arm test-all: test-amd64 test-arm .PHONY: test-s3-amd64 -test-s3-amd64: build-amd64 +test-s3-amd64: build-amd64 clean-minio cd tests && ./test-compose.sh s3 $(DOCKER_TAG):amd64 .PHONY: test-s3-arm -test-s3-arm: build-arm +test-s3-arm: build-arm clean-minio cd tests && ./test-compose.sh s3 $(DOCKER_TAG):arm .PHONY: test-s3-all @@ -55,6 +55,14 @@ shell-arm: build-arm .PHONY: shell shell: shell-amd64 +# Installs pre-commit hooks +.PHONY: install-hooks +install-hooks: + pre-commit install --install-hooks + .PHONY: clean -clean: - docker-compose -f docker-compose-test-s3.yml down -v +clean: clean-minio + +.PHONY: clean-minio +clean-minio: + docker-compose -f tests/docker-compose-test-s3.yml down -v