From df7b48cee71bc7aad807737e9bd90cd61d8b398c Mon Sep 17 00:00:00 2001 From: "Matt T. Proud" Date: Fri, 2 Aug 2013 11:20:01 +0200 Subject: [PATCH] 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. --- .travis.yml | 8 ++++++++ Makefile | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..5f70bdf4c0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: go + +go: + - 1.1 + +install: + - make dependencies + diff --git a/Makefile b/Makefile index bcacc04f56..afbbf63c78 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,13 @@ +all: test + coverage: gocov test github.com/benbjohnson/go-raft | gocov-html > coverage.html open coverage.html + +dependencies: + go get -d . + +test: + go test -v ./... + +.PHONY: coverage dependencies test