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
parent
0be5a48b52
commit
df7b48cee7
|
@ -0,0 +1,8 @@
|
||||||
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- 1.1
|
||||||
|
|
||||||
|
install:
|
||||||
|
- make dependencies
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue