From 6b32b938a6e9f810e72eb194c3dfe5cd7714d83b Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Wed, 19 Apr 2017 10:42:46 -0400 Subject: [PATCH] Add test dependencies This clears up .travis.yaml as well as adds the test dependencies when running `make test` so the user running the tests has the most up-to-date ones available. --- .travis.yml | 7 ------- Makefile | 11 ++++++++++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index a84f3594..b2bdd482 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,13 +15,6 @@ matrix: - go: 1.7 - go: 1.8 -before_install: - - go get github.com/mattn/goveralls - - go get github.com/modocache/gover - - go get github.com/Masterminds/glide - - go get github.com/sgotti/glide-vc - - go get github.com/golang/lint/golint - install: - true diff --git a/Makefile b/Makefile index 8e50b867..1b25af9e 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,16 @@ check-vendor: # Run all tests .PHONY: test -test: check-vendor validate test-unit-cover install test-cmd +test: test-dep check-vendor validate test-unit-cover install test-cmd + +# Install all the required test-dependencies before executing tests (only valid when running `make test`) +.PHONY: test-dep +test-dep: + go get github.com/mattn/goveralls + go get github.com/modocache/gover + go get github.com/Masterminds/glide + go get github.com/sgotti/glide-vc + go get github.com/golang/lint/golint # build docker image that is used for running all test localy .PHONY: test-image