Add make deps and make updatedeps
This commit is contained in:
parent
28b31068cd
commit
81ca2bca7d
|
|
@ -11,4 +11,4 @@ matrix:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# TODO: change to "make" when golint, errcheck, staticcheck pass
|
# TODO: change to "make" when golint, errcheck, staticcheck pass
|
||||||
- make checkgofmt vet unused test
|
- make deps checkgofmt vet unused test
|
||||||
|
|
|
||||||
10
Makefile
10
Makefile
|
|
@ -2,7 +2,15 @@ SRCS := $(shell find . -name '*.go')
|
||||||
PKGS := $(shell go list ./...)
|
PKGS := $(shell go list ./...)
|
||||||
|
|
||||||
.PHONY: all
|
.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
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue