2017-03-08 04:23:38 -08:00
|
|
|
PACKAGES=$(shell go list ./... | grep -v "test")
|
2016-06-23 17:36:59 -07:00
|
|
|
|
2017-03-07 07:20:19 -08:00
|
|
|
all: get_deps test
|
2016-06-23 17:36:59 -07:00
|
|
|
|
2017-03-07 06:34:54 -08:00
|
|
|
test:
|
|
|
|
@echo "--> Running go test --race"
|
|
|
|
@go test --race $(PACKAGES)
|
|
|
|
@echo "--> Running integration tests"
|
|
|
|
@bash ./test/integration_test.sh
|
2016-06-23 17:36:59 -07:00
|
|
|
|
|
|
|
get_deps:
|
2017-03-07 06:34:54 -08:00
|
|
|
@echo "--> Running go get"
|
|
|
|
@go get -v -d $(PACKAGES)
|
2017-03-10 00:03:16 -08:00
|
|
|
@go list -f '{{join .TestImports "\n"}}' ./... | \
|
|
|
|
grep -v /vendor/ | sort | uniq | \
|
|
|
|
xargs go get -v -d
|
2017-03-07 06:34:54 -08:00
|
|
|
|
|
|
|
.PHONY: all test get_deps
|