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)
|
|
|
|
|
|
|
|
.PHONY: all test get_deps
|