From 81ca2bca7d04c36d5b224ae174dec1593562a112 Mon Sep 17 00:00:00 2001 From: Peter Edge Date: Sat, 17 Feb 2018 23:50:29 +0100 Subject: [PATCH] Add make deps and make updatedeps --- .travis.yml | 2 +- Makefile | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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: