Skip to content

Commit

Permalink
push test report to coveralls in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Jul 1, 2019
1 parent 1017671 commit e00d7f4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ APP_EXECUTABLE="./out/$(APP)"
all: test-ci

setup:
go get -u golang.org/x/lint/golint
go get -u github.com/axw/gocov/gocov
go get golang.org/x/lint/golint
go get github.com/mattn/goveralls

compile:
mkdir -p out
Expand All @@ -23,17 +23,13 @@ vet:
test:
go test ./...

test-cov:
gocov test ./... > coverage.json

test-cov-report:
@echo "\nGENERATING TEST REPORT."
gocov report coverage.json
coverage:
goveralls -service=travis-ci

copy-config:
cp config.yaml.example config.yaml

docker-image:
docker build -t ${USER}/darkroom:latest -f build/Dockerfile .

test-ci: copy-config compile lint format vet test test-cov test-cov-report
test-ci: copy-config compile lint format vet test coverage

0 comments on commit e00d7f4

Please sign in to comment.