From ae4d863dd2b47620c5ff3bdc7f71834b35642916 Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Tue, 21 Jun 2016 23:01:45 -0700 Subject: [PATCH] Renamed test target to coverage, added test target for local testing --- .travis.yml | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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