Skip to content

Commit

Permalink
update coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
nlamirault committed Feb 10, 2015
1 parent fceb3cf commit 07711df
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
Godeps/_workspace
onlinelabs
coverage.out
coverage.out
gover.coverprofile
7 changes: 6 additions & 1 deletion .travis.yml
@@ -1,11 +1,16 @@
language: go
go:
- 1.3
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
install:
- go get -t -v ./...
script:
# - go vet ./...
# - go test -v ./...
- make init
- make deps
- make test
- make coverage
- $HOME/gopath/bin/goveralls -service=travis-ci
14 changes: 7 additions & 7 deletions Makefile
Expand Up @@ -18,6 +18,7 @@ DOCKER = docker
GODEP= $(DIR)/Godeps/_workspace/bin/godep
GOLINT= $(DIR)/Godeps/_workspace/bin/golint
ERRCHECK= $(DIR)/Godeps/_workspace/bin/errcheck
GOVER= $(DIR)/Godeps/_workspace/bin/gover
GOVERALLS= $(DIR)/Godeps/_workspace/bin/goveralls

NO_COLOR=\033[0m
Expand Down Expand Up @@ -46,7 +47,7 @@ help:

clean:
@echo -e "$(OK_COLOR)[$(APP)] Cleanup$(NO_COLOR)"
@rm -f $(EXE) $(EXE)_* $(APP)-*.tar.gz
@rm -f $(EXE) $(EXE)_* $(APP)-*.tar.gz coverage.out gover.coverprofile

.PHONY: destroy
destroy:
Expand Down Expand Up @@ -108,12 +109,11 @@ covoutput:
# @GOPATH=$(GO_PATH) go tool cover -html=coverage.out
@GOPATH=$(GO_PATH) go tool cover -func=coverage.out

coveralls: build
@GOPATH=$(GO_PATH) go get -v github.com/axw/gocov/gocov
@GOPATH=$(GO_PATH) go get golang.org/x/tools/cmd/cover
@GOPATH=$(GO_PATH) go get -v github.com/mattn/goveralls
@GOPATH=$(GO_PATH) go test -covermode=count -coverprofile=profile.cov
@GOPATH=$(GO_PATH) $(GOVERALLS) -coverprofile=profile.cov -service=travis-ci $(COVERALLS_TOKEN)
coveralls:
@GOPATH=$(GO_PATH) go get -u code.google.com/p/go.tools/cmd/cover || go get -u golang.org/x/tools/cmd/cover
@GOPATH=$(GO_PATH) go get -u github.com/axw/gocov/gocov
@GOPATH=$(GO_PATH) go get github.com/mattn/goveralls
@PATH=$(PATH):$(DIR)/Godeps/_workspace/bin/ GOPATH=$(GO_PATH) $(GOVERALLS) -service drone.io -repotoken $$COVERALLS_TOKEN github.com/nlamirault/$(APP)

release: clean build
@echo -e "$(OK_COLOR)[$(APP)] Make archive $(VERSION) $(NO_COLOR)"
Expand Down

0 comments on commit 07711df

Please sign in to comment.