diff --git a/Makefile b/Makefile index fa602c0..eef1490 100644 --- a/Makefile +++ b/Makefile @@ -16,18 +16,19 @@ push-docker: ## Release docker docker push ghcr.io/riotkit-org/br-backup-maker:${DOCKER_TAG} ensure-mysql: - if [[ $$CI == "true" ]]; then \ + @if [[ $$CI == "true" ]]; then \ sudo apt-get update && sudo apt-get install mariadb-client -y && mysql --version; \ fi ensure-go-junit-report: command -v go-junit-report || (cd /tmp && go install github.com/jstemmer/go-junit-report/v2@latest) -coverage: ensure-mysql ensure-go-junit-report test + +coverage: test download-k3d: [[ -f ".build/k3d" ]] || (mkdir -p .build && wget https://github.com/k3d-io/k3d/releases/download/v5.4.7/k3d-linux-amd64 -O .build/k3d && chmod +x .build/k3d) -test: prepare_e2e_workspace build download-k3d +test: prepare_e2e_workspace build download-k3d ensure-go-junit-report ensure-mysql # see versions.mk export TEST_BACKUP_REPOSITORY_VERSION=${TEST_BACKUP_REPOSITORY_VERSION}; \ export TEST_POSTGRES_VERSION=${TEST_POSTGRES_VERSION}; \