Skip to content

Commit

Permalink
Adding coveralls + goveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
abh1nav committed Mar 21, 2016
1 parent 924ce7f commit 6166eab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ language: go
go:
- 1.5
- 1.6
- tip

services:
- redis-server
Expand All @@ -13,3 +12,7 @@ install:
- make deps

script: make test

after_script:
- go get github.com/mattn/goveralls
- goveralls -coverprofile=wredis.coverprofile -service=travis-ci
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Wredis
Wredis [![Build Status](https://travis-ci.org/crowdriff/wredis.svg?branch=master)](https://travis-ci.org/crowdriff/wredis) [![Go Report Card](https://goreportcard.com/badge/github.com/crowdriff/wredis)](https://goreportcard.com/report/github.com/crowdriff/wredis) [![GoDoc](https://godoc.org/github.com/crowdriff/traffic?status.svg)](https://godoc.org/github.com/crowdriff/traffic)
===

[![Build Status](https://travis-ci.org/crowdriff/wredis.svg?branch=master)](https://travis-ci.org/crowdriff/wredis) [![Go Report Card](https://goreportcard.com/badge/github.com/crowdriff/wredis)](https://goreportcard.com/report/github.com/crowdriff/wredis)

Wredis is a wrapper around the [redigo](https://github.com/garyburd/redigo) `redis.Pool` and provides an easy-to-use API for [Redis commands](http://redis.io/commands)

## Getting Started
Expand Down
18 changes: 3 additions & 15 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
version=0.1.4
version=0.1.5

.PHONY: all

# To cross compile for linux on mac, build go-linux cross compiler first using
# cd /usr/local/go/src
# sudo GOOS=linux GOARCH=amd64 CGO_ENABLED=0 ./make.bash --no-clean

all:
@echo "make <cmd>"
@echo ""
@echo "commands:"
@echo " build - build the dist binary"
@echo " clean - clean the dist build"
@echo " coverage - generate a test coverage report"
@echo " deps - pull and setup dependencies"
@echo " install - run go install for all sub packages"
@echo " test - run tests"
@echo " tools - go get's a bunch of tools for development"
@echo " update_deps - update deps lock file"
@echo " update_deps - update deps glock file"

build: clean
@go build ./...
Expand All @@ -27,17 +21,11 @@ build: clean
clean:
@rm -rf ./bin

coverage:
@go test -cover -v ./...

deps:
@glock sync -n github.com/crowdriff/wredis < Glockfile

install:
@go install ./...

test:
@ginkgo
@ginkgo -r -v -cover -race

tools:
go get github.com/robfig/glock
Expand Down

0 comments on commit 6166eab

Please sign in to comment.