add travis ci

This commit is contained in:
hslam 2020-11-27 17:21:08 +08:00
parent a0c8cf24ad
commit e64b9a4ff0
1 changed files with 12 additions and 0 deletions

12
.travis.yml Normal file
View File

@ -0,0 +1,12 @@
language: go
os:
- linux
go:
- 1.13
install:
- go get -t -v -d ./...
script:
- go test -v .
- go test -race -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)