Enable codecov

This commit is contained in:
Jinzhu 2019-05-02 22:49:30 +08:00
parent 2cd73627bd
commit b00248862a
3 changed files with 15 additions and 11 deletions

View File

@ -1,11 +0,0 @@
---
engines:
gofmt:
enabled: true
govet:
enabled: true
golint:
enabled: true
ratings:
paths:
- "**.go"

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
documents
coverage.txt
_book

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
language: go
go:
- 1.12.x
- tip
before_install:
- go get -t -v ./...
script:
- go test -race -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)