Skip to content

Commit

Permalink
Updates for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
derekcollison committed Jun 24, 2015
1 parent 59e597e commit 20e0b13
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 35 deletions.
22 changes: 0 additions & 22 deletions .travis-support/TRAVIS_PRIVATE_REPO_INSTRUCTIONS.txt

This file was deleted.

6 changes: 0 additions & 6 deletions .travis-support/id_travis.pub.pem

This file was deleted.

Binary file removed .travis-support/token
Binary file not shown.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
language: go
go:
- 1.3
- 1.4

install:
- DST=~/gopath/src/github.com/apcera
- DST=~/gopath/src/github.com/nats-io
- mkdir -p "$DST"
- git clone --depth=1 --quiet https://github.com/apcera/gnatsd.git "$DST"/gnatsd
- go get code.google.com/p/go.tools/cmd/vet
- git clone --depth=1 --quiet https://github.com/nats-io/gnatsd.git "$DST"/gnatsd
- go get golang.org/x/tools/cmd/vet
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls

script:
- go get -d -v ./...
- go build -v ./...
- go fmt ./...
- go vet ./...
- go test -i -race ./...
- go test -v -race ./...
- GOMAXPROCS=1 go test -v -race ./...
- GOMAXPROCS=1 go test -v -covermode=count -coverprofile=coverage.out
- $HOME/gopath/bin/goveralls -coverprofile coverage.out -service travis-ci
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ A RAFT Election implementation in Go. More information on RAFT can be found in t
) and this [video](http://www.youtube.com/watch?v=YbZ3zDzDnrw&list=WL20FE97C942825E1E).

[![License MIT](https://img.shields.io/npm/l/express.svg)](http://opensource.org/licenses/MIT)
[![Build Status](https://magnum.travis-ci.com/apcera/graft.png?token=UGjrGa8sFWGQcHSJeAvp)](https://magnum.travis-ci.com/apcera/graft)
[![Build Status](https://travis-ci.org/nats-io/graft.svg?branch=master)](http://travis-ci.org/nats-io/graft)
[![Coverage Status](https://coveralls.io/repos/nats-io/graft/badge.svg)](https://coveralls.io/r/nats-io/graft?branch=master)

Overview
=====
Expand Down
2 changes: 1 addition & 1 deletion heartbeat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func sendAndWait(n *Node, hb *Heartbeat) {
for len(n.HeartBeats) > 0 {
time.Sleep(1 * time.Millisecond)
}
time.Sleep(1 * time.Millisecond)
time.Sleep(5 * time.Millisecond)
}

func TestHeartBeatAsFollower(t *testing.T) {
Expand Down

0 comments on commit 20e0b13

Please sign in to comment.