More multi-package coverage changes

Relates to #240
This commit is contained in:
Sean DuBois
2018-11-24 23:49:48 -08:00
parent 596f8dde7f
commit 759f7519ad
2 changed files with 3 additions and 6 deletions

3
.gitignore vendored
View File

@@ -10,5 +10,4 @@ vendor/
### Files ###
#############
*.ivf
tags
.coverprofile
tags

View File

@@ -13,16 +13,14 @@ before_install:
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10.2
- go get github.com/mattn/goveralls github.com/modocache/gover
- go get github.com/mattn/goveralls
script:
- bash .github/build-examples.sh
- rm -rf examples
# Remove examples, no test coverage for them
- golangci-lint run
- go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ./... | xargs sh -c
- gover
- goveralls -v -race -coverprofile=gover.coverprofile -service=travis-ci
- goveralls -v -race -covermode=atomic -service=travis-ci
- bash .github/assert-contributors.sh
- bash .github/lint-disallowed-functions-in-library.sh
- bash .github/lint-commit-message.sh