run CI on Travis CI

This commit is contained in:
rhysd 2017-12-30 13:32:46 +09:00
parent 0cce7553af
commit 0d267357c7
1 changed files with 14 additions and 0 deletions

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
language: go
os:
- linux
- osx
install:
- go get -t -d -v ./...
- go version
- go env
script:
- go build ./selfupdate/
- go build ./cmd/selfupdate-example/
- go test -v -race -coverprofile=coverage.txt ./selfupdate
after_success:
- bash <(curl -s https://codecov.io/bash)