From 5482c23ed61eff19d3f5ebd6cff597e88c37c5a1 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Thu, 26 Aug 2021 12:36:55 +0200 Subject: [PATCH] Makefile: Add integration-tests target (#177) Signed-off-by: Arve Knudsen --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2ed90c7b6bf..4a387a5adb8 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # WARNING: do not commit to a repository! -include Makefile.local -.PHONY: all test cover clean images protos exes dist doc clean-doc check-doc push-multiarch-build-image license check-license format +.PHONY: all test integration-tests cover clean images protos exes dist doc clean-doc check-doc push-multiarch-build-image license check-license format .DEFAULT_GOAL := all # Version number @@ -384,6 +384,9 @@ dist/$(UPTODATE)-packages: dist $(wildcard packaging/deb/**) $(wildcard packagin endif +integration-tests: cmd/mimir/$(UPTODATE) + go test -tags=requires_docker ./integration/... + # Build both arm64 and amd64 images, so that we can test deb/rpm packages for both architectures. packaging/rpm/centos-systemd/$(UPTODATE): packaging/rpm/centos-systemd/Dockerfile $(SUDO) docker build --platform linux/amd64 --build-arg=revision=$(GIT_REVISION) --build-arg=goproxyValue=$(GOPROXY_VALUE) -t $(IMAGE_PREFIX)$(shell basename $(@D)):amd64 $(@D)/