Add Travis CI tests for go-raft.

In playing around with the code in go-raft, I noticed that a number
of the tests are non-deterministic.  I figure Travis CI integration
will help illuminate changes that introduce regressions against
test health.
pull/820/head
Matt T. Proud 2013-08-02 11:20:01 +02:00
parent 0be5a48b52
commit df7b48cee7
2 changed files with 18 additions and 0 deletions

8
.travis.yml Normal file
View File

@ -0,0 +1,8 @@
language: go
go:
- 1.1
install:
- make dependencies

View File

@ -1,3 +1,13 @@
all: test
coverage: coverage:
gocov test github.com/benbjohnson/go-raft | gocov-html > coverage.html gocov test github.com/benbjohnson/go-raft | gocov-html > coverage.html
open coverage.html open coverage.html
dependencies:
go get -d .
test:
go test -v ./...
.PHONY: coverage dependencies test