diff --git a/.travis.yml b/.travis.yml index 7caa984..54c7d98 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ matrix: script: # TODO: change to "make" when golint, errcheck, staticcheck pass - - make checkgofmt vet unused test + - make deps checkgofmt vet unused test diff --git a/Makefile b/Makefile index 2f7b9c2..1ff4eb9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,15 @@ SRCS := $(shell find . -name '*.go') PKGS := $(shell go list ./...) .PHONY: all -all: lint test +all: deps lint test + +.PHONY: deps +deps: + go get -d -v -t $(PKGS) + +.PHONY: updatedeps +updatedeps: + go get -d -v -t -u -f $(PKGS) .PHONY: install install: