Travis CI setup.

This commit is contained in:
Andrey Smirnov
2013-12-13 23:28:24 +04:00
parent 5181334336
commit d489365be2
2 changed files with 34 additions and 0 deletions

16
.travis.yml Normal file
View File

@@ -0,0 +1,16 @@
language: go
go:
- 1.0
- 1.1
- 1.2
env:
global:
- secure: "YSwtFrMqh4oUvdSQTXBXMHHLWeQgyNEL23ChIZwU0nuDGIcQZ65kipu0PzefedtUbK4ieC065YCUi4UDDh6gPotB/Wu1pnYg3dyQ7rFvhaVYAAUEpajAdXZhlx+7+J8a4FZMeC/kqiahxoRgLbthF9019ouIqhGB9zHKI6/yZwc="
install:
- make prepare
script: /home/travis/gopath/bin/goveralls -service travis-ci.org -package="./..." $COVERALLS_TOKEN

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
prepare:
go get -d -v ./...
go get launchpad.net/gocheck
go get github.com/axw/gocov/gocov
go get github.com/golang/lint/golint
go get github.com/matm/gocov-html
go get github.com/mattn/goveralls
coverage:
gocov test ./... | gocov-html > coverage.html
open coverage.html
check:
go tool vet -all=true .
golint .
test:
go test -v ./...