Skip to content

Commit

Permalink
travis: use go-acc and test format
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed Oct 25, 2017
1 parent 9d24ee6 commit ef355c4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ env:
- GO15VENDOREXPERIMENT=1

install:
- go get github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/pierrre/gotestcover github.com/Masterminds/glide
- go get github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/pierrre/gotestcover github.com/Masterminds/glide github.com/ory/go-acc
- glide install

script:
- touch ./coverage.tmp
- |
echo 'mode: atomic' > coverage.txt
- |
go list ./... | grep -v /vendor | grep -v /internal | xargs -n1 -I{} sh -c 'go test -race -covermode=atomic -coverprofile=coverage.tmp -coverpkg $(go list ./... | grep -v /vendor | grep -v /internal | tr "\n" ",") {} && tail -n +2 coverage.tmp >> coverage.txt || exit 255' && rm coverage.tmp
- ./scripts/test-format.sh
- go-acc -o coverage.txt $(glide novendor)
- goveralls -coverprofile="coverage.txt"

0 comments on commit ef355c4

Please sign in to comment.