Skip to content

Commit

Permalink
coveralls support added
Browse files Browse the repository at this point in the history
  • Loading branch information
zlav committed Sep 13, 2018
1 parent ca66f70 commit 7654166
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PREFIX?=/usr/local/bin
GO_BINDATA="$(BIN)/go-bindata"
GENNY="$(BIN)/genny"
GO_JUNIT_REPORT="$(BIN)/go-junit-report"
GOVERALLS="$(BIN)/goveralls"

GORELEASER_FLAGS?=--rm-dist
LDFLAGS:=-ldflags '-extldflags "-static" -X github.com/fossas/fossa-cli/cmd/fossa/version.version=$(shell git rev-parse --abbrev-ref HEAD) -X github.com/fossas/fossa-cli/cmd/fossa/version.commit=$(shell git rev-parse HEAD) -X "github.com/fossas/fossa-cli/cmd/fossa/version.goversion=$(shell go version)" -X github.com/fossas/fossa-cli/cmd/fossa/version.buildType=development'
Expand All @@ -25,6 +26,9 @@ $(GENNY):
$(GO_JUNIT_REPORT):
[ -f $@ ] || go get -u github.com/jstemmer/go-junit-report

$(GOVERALLS):
[ -f $@ ] || go get -u github.com/mattn/goveralls

# Building the CLI.
.PHONY: build
build: $(BIN)/fossa
Expand Down Expand Up @@ -90,8 +94,8 @@ unit-test:
go test ./...

.PHONY: junit-test
junit-test: $(GO_JUNIT_REPORT)
go test -v ./... | go-junit-report
junit-test: $(GO_JUNIT_REPORT) $(GOVERALLS)
goveralls -v -service=circle-ci -repotoken=$(COVERALLS_TOKEN) | go-junit-report

.PHONY: integration-test
integration-test: docker-test
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<a href="http://slack.fossa.io/">
<img src="https://slack.fossa.io/badge.svg">
</a>
<a href='https://coveralls.io/github/fossas/fossa-cli?branch=master'>
<img src='https://coveralls.io/repos/github/fossas/fossa-cli/badge.svg?branch=master' alt='coverage status' />
</a>
</p>

## Background
Expand Down

0 comments on commit 7654166

Please sign in to comment.