diff --git a/.travis.yml b/.travis.yml index 8e2a4ea..17316b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ before_install: - go get github.com/go-playground/overalls script: - - make test + - make coverage after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index f34cc6b..0b12e7e 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,10 @@ mumbledj: ## Default action. Builds MumbleDJ. .PHONY: test test: ## Runs unit tests for MumbleDJ. + @env GO15VENDOREXPERIMENT="1" go test $(dirs) + +.PHONY: coverage +coverage: ## Runs coverage tests for MumbleDJ. @env GO15VENDOREXPERIMENT="1" overalls -project=github.com/matthieugrieger/mumbledj -covermode=atomic @mv overalls.coverprofile coverage.txt