Makefile: add -mod=vendor to go test, so tests use external deps from vendor folder

This commit is contained in:
Aliaksandr Valialkin 2019-05-27 00:35:46 +03:00
parent 3b52adaf3f
commit 6e90aaeb8c

View file

@ -57,12 +57,12 @@ install-errcheck:
which errcheck || GO111MODULE=off go get -u github.com/kisielk/errcheck
test:
GO111MODULE=on go test ./lib/...
GO111MODULE=on go test ./app/...
GO111MODULE=on go test -mod=vendor ./lib/...
GO111MODULE=on go test -mod=vendor ./app/...
benchmark:
GO111MODULE=on go test -bench=. ./lib/...
GO111MODULE=on go test -bench=. ./app/...
GO111MODULE=on go test -mod=vendor -bench=. ./lib/...
GO111MODULE=on go test -mod=vendor -bench=. ./app/...
vendor-update:
GO111MODULE=on go get -u ./lib/...