Add coverage calculation to travis file
This commit is contained in:
parent
2306bbaad7
commit
c005fa3247
1 changed files with 10 additions and 0 deletions
10
.travis.yml
10
.travis.yml
|
@ -1,14 +1,24 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: false
|
depth: false
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.9.5
|
- 1.9.5
|
||||||
- "1.10.1"
|
- "1.10.1"
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
- windows
|
- windows
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get github.com/golang/dep/cmd/dep
|
- go get github.com/golang/dep/cmd/dep
|
||||||
- go get github.com/magefile/mage
|
- go get github.com/magefile/mage
|
||||||
- mage -v install
|
- mage -v install
|
||||||
|
|
||||||
|
script:
|
||||||
|
- go test ./... -race -coverprofile=coverage.txt -covermode=atomic
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
Loading…
Reference in a new issue