Added coveralls back in
This commit is contained in:
parent
74676119cd
commit
5f8977944a
|
@ -9,11 +9,16 @@ go:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- go get github.com/Masterminds/glide
|
- go get github.com/Masterminds/glide
|
||||||
|
- go get github.com/mattn/goveralls
|
||||||
|
- go get golang.org/x/tools/cmd/cover
|
||||||
- glide install
|
- glide install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- make coveralls
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- GO15VENDOREXPERIMENT="1"
|
- GO15VENDOREXPERIMENT="1"
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -5,22 +5,32 @@ all: mumbledj
|
||||||
mumbledj: ## Default action. Builds MumbleDJ.
|
mumbledj: ## Default action. Builds MumbleDJ.
|
||||||
@env GO15VENDOREXPERIMENT="1" go build .
|
@env GO15VENDOREXPERIMENT="1" go build .
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
test: ## Runs unit tests for MumbleDJ.
|
test: ## Runs unit tests for MumbleDJ.
|
||||||
@env GO15VENDOREXPERIMENT="1" go test $(dirs)
|
@env GO15VENDOREXPERIMENT="1" go test $(dirs)
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean: ## Removes compiled MumbleDJ binaries.
|
clean: ## Removes compiled MumbleDJ binaries.
|
||||||
@rm -f mumbledj*
|
@rm -f mumbledj*
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
install: ## Copies MumbleDJ binary to /usr/local/bin for easy execution.
|
install: ## Copies MumbleDJ binary to /usr/local/bin for easy execution.
|
||||||
@cp -f mumbledj* /usr/local/bin/mumbledj
|
@cp -f mumbledj* /usr/local/bin/mumbledj
|
||||||
|
|
||||||
|
.PHONY: dist
|
||||||
dist: ## Performs cross-platform builds via gox for multiple Linux platforms.
|
dist: ## Performs cross-platform builds via gox for multiple Linux platforms.
|
||||||
@go get -u github.com/mitchellh/gox
|
@go get -u github.com/mitchellh/gox
|
||||||
@gox -cgo -osarch="linux/amd64 linux/386"
|
@gox -cgo -osarch="linux/amd64 linux/386"
|
||||||
|
|
||||||
|
.PHONY: bindata
|
||||||
bindata: ## Regenerates bindata.go with an updated configuration file.
|
bindata: ## Regenerates bindata.go with an updated configuration file.
|
||||||
@go get -u github.com/jteeuwen/go-bindata/...
|
@go get -u github.com/jteeuwen/go-bindata/...
|
||||||
@go-bindata config.yaml
|
@go-bindata config.yaml
|
||||||
|
|
||||||
|
.PHONY: coveralls
|
||||||
|
coveralls: ## Performs coveralls tests.
|
||||||
|
@goveralls -service=travis-ci .
|
||||||
|
|
||||||
|
.PHONY: help
|
||||||
help: ## Shows this helptext.
|
help: ## Shows this helptext.
|
||||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
Reference in a new issue