Skip to content

Commit

Permalink
Set up Codecov - #6
Browse files Browse the repository at this point in the history
  • Loading branch information
caalberts committed Oct 25, 2018
1 parent 2f0b0d6 commit b31a9a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ jobs:
- checkout
- run: make build
- run: go get github.com/mattn/goveralls
- run: make test-cover
- run: /go/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN
- run: make test-codecov
- run: /go/bin/goveralls -coverprofile=coverage.txt -service=circle-ci -repotoken $COVERALLS_TOKEN
- run: bash <(curl -s https://codecov.io/bash
release:
docker:
- image: circleci/golang:1.10
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ lint:
done

test: build-deps
ENVIRONMENT=test go test $(ALL_PACKAGES) -race
go test $(ALL_PACKAGES) -race

test-cover: build-deps
ENVIRONMENT=test go test $(ALL_PACKAGES) -race -v -cover -coverprofile=coverage.out
go test $(ALL_PACKAGES) -race -v -cover -coverprofile=coverage.out

test-codecov: build-deps
go test -race -coverprofile=coverage.txt -covermode=atomic $(ALL_PACKAGES)

0 comments on commit b31a9a3

Please sign in to comment.