Renamed test target to coverage, added test target for local testing
This commit is contained in:
parent
e63d5ebfa0
commit
ae4d863dd2
|
@ -12,7 +12,7 @@ before_install:
|
||||||
- go get github.com/go-playground/overalls
|
- go get github.com/go-playground/overalls
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make coverage
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -7,6 +7,10 @@ mumbledj: ## Default action. Builds MumbleDJ.
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: ## Runs unit tests for MumbleDJ.
|
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
|
@env GO15VENDOREXPERIMENT="1" overalls -project=github.com/matthieugrieger/mumbledj -covermode=atomic
|
||||||
@mv overalls.coverprofile coverage.txt
|
@mv overalls.coverprofile coverage.txt
|
||||||
|
|
||||||
|
|
Reference in a new issue