Skip to content

Commit

Permalink
fix coverage reporting #150
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Landgraf committed Jan 30, 2020
1 parent 6ab29ec commit dd0ffbb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
@@ -1,10 +1,20 @@
language: go

before_install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover

after_success:
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci

services:
- docker

env:
- GO111MODULE=on

go:
- 1.13.x

script:
- docker-compose run testserver make ci
- docker-compose run testserver make ci
9 changes: 2 additions & 7 deletions Makefile
@@ -1,6 +1,6 @@
# Copyright © 2018 by PACE Telematics GmbH. All rights reserved.
# Created at 2018/08/24 by Vincent Landgraf
.PHONY: install test jsonapi build integration ci ci-test
.PHONY: install test jsonapi build integration ci

JSONAPITEST=http/jsonapi/generator/internal
JSONAPIGEN="./tools/jsonapigen/main.go"
Expand Down Expand Up @@ -43,10 +43,5 @@ integration:
testserver:
docker-compose up

ci-test:
ci:
go test -mod=vendor -count=1 -v -cover -covermode=count -coverprofile=coverage.out -short ./...

ci: ci-test
go get github.com/mattn/goveralls
go get golang.org/x/tools/cmd/cover
$(GOPATH)/bin/goveralls -coverprofile=coverage.out -service=travis-ci

0 comments on commit dd0ffbb

Please sign in to comment.