You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
417 B

8 years ago
  1. PACKAGES=$(shell go list ./... | grep -v "test")
  2. all: get_deps test
  3. test:
  4. @echo "--> Running go test --race"
  5. @go test --race $(PACKAGES)
  6. @echo "--> Running integration tests"
  7. @bash ./test/integration_test.sh
  8. get_deps:
  9. @echo "--> Running go get"
  10. @go get -v -d $(PACKAGES)
  11. @go list -f '{{join .TestImports "\n"}}' ./... | \
  12. grep -v /vendor/ | sort | uniq | \
  13. xargs go get -v -d
  14. .PHONY: all test get_deps