From 7997d41fa9cdbb40ca980deede4f0fa7a2c86828 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 6 Jan 2017 13:34:45 +0900 Subject: [PATCH 1/2] Add `make check` to run tests --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9b1adad0..6ee07588 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ ifndef VERSION VERSION := git-$(shell git rev-parse --short HEAD) endif -.PHONY: controller container push clean vet fmt +.PHONY: controller container push clean vet fmt check controller: clean CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags \ @@ -32,3 +32,6 @@ vet: fmt: go fmt github.com/zlabjp/nghttpx-ingress-lb/pkg/... + +check: + go test github.com/zlabjp/nghttpx-ingress-lb/pkg/... From 9840dc40d521e07856f7260f657bb550042327f1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 6 Jan 2017 13:34:55 +0900 Subject: [PATCH 2/2] Run tests on travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 0eb40d9a..e2061763 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ go: services: - docker script: +- make check - make controller - docker build -t zlabjp/nghttpx-ingress-controller . after_success: