Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
caalberts committed Jul 24, 2018
1 parent 04d3d26 commit 22bf7e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@ jobs:
working_directory: /go/src/github.com/caalberts/localroast
steps:
- checkout
- run: make setup
- run: make all
- run: make build
test:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/caalberts/localroast
steps:
- checkout
- run: go get github.com/mattn/goveralls
- run: make test-cover
- run: /go/bin/goveralls -coverprofile=coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ lint:

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

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

0 comments on commit 22bf7e7

Please sign in to comment.