Skip to content

Commit

Permalink
Merge pull request #3 from dave-tucker/tidyup/ci
Browse files Browse the repository at this point in the history
Bring ecc under CI
  • Loading branch information
mavenugo committed Jan 11, 2015
2 parents 5990c02 + 14c94a4 commit 79b9bcf
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
### https://raw.github.com/github/gitignore/master/Go.gitignore

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof

# Coverage
*.out

# Test data
data-dir/
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
all: build test
all: build test test-all

build:
go build -v

test:
go test -covermode=count -test.short -coverprofile=coverage.out -v

test-all:
go test -covermode=count -coverprofile=coverage.out -v
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ecc
===

[![Circle CI](https://circleci.com/gh/socketplane/ecc.svg?style=svg)](https://circleci.com/gh/socketplane/ecc) [![Coverage Status](https://img.shields.io/coveralls/socketplane/ecc.svg)](https://coveralls.io/r/socketplane/ecc)

Embedded Clustering Client.
Currently using Consul.
27 changes: 27 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
machine:
environment:
DOCKER_IP: "127.0.0.1"
GOPATH: "/home/ubuntu/.go_workspace"
ORG_PATH: "github.com/socketplane"
REPO_PATH: "${ORG_PATH}/ecc"

dependencies:
override:
- rm -rf ${GOPATH}/src/${REPO_PATH}
- mkdir -p ${GOPATH}/src/${ORG_PATH}
- cp -r ../ecc ${GOPATH}/src/${ORG_PATH}
- mkdir -p ${CIRCLE_ARTIFACTS}/coverage
- go get github.com/mattn/goveralls

test:
override:
- make build:
pwd: ../.go_workspace/src/${REPO_PATH}
- make test-all:
pwd: ../.go_workspace/src/${REPO_PATH}
post:
- go tool cover -html=coverage.out -o $CIRCLE_ARTIFACTS/coverage/index.html:
pwd: ../.go_workspace/src/${REPO_PATH}
- goveralls -coverprofile=coverage.out -service=circleci -repotoken $COVERALLS_TOKEN:
pwd: ../.go_workspace/src/${REPO_PATH}

0 comments on commit 79b9bcf

Please sign in to comment.