23 lignes
687 o
YAML
23 lignes
687 o
YAML
|
language: go
|
||
|
|
||
|
go_import_path: github.com/ory/fosite
|
||
|
|
||
|
go:
|
||
|
- 1.7
|
||
|
- 1.8
|
||
|
|
||
|
env:
|
||
|
- GO15VENDOREXPERIMENT=1
|
||
|
|
||
|
install:
|
||
|
- go get github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/pierrre/gotestcover github.com/Masterminds/glide
|
||
|
- 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
|
||
|
- goveralls -coverprofile="coverage.txt"
|