From 091a0feb9b6daad4ac96bf7f886f6f2a4bbbc3b1 Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Fri, 8 Aug 2014 14:06:49 +0300 Subject: [PATCH] travis: add coverage --- .travis.yml | 10 +++++++++- README.md | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2405aef..1862212 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,11 @@ language: go go: 1.3 - +before_install: +- go get github.com/axw/gocov/gocov +- go get github.com/mattn/goveralls +- go get code.google.com/p/go.tools/cmd/cover +script: +- $HOME/gopath/bin/goveralls -repotoken $COVERALLS_TOKEN +env: + global: + secure: TQBWcnkeQqgqxeNazuMz8/u15jFCwUtiF6z4VCgbCcwPqUyaS1Xf1xtSisfgqFRUGKC7j+yGXC9F1BkGVkz5fKXm5nQxTZvNzjg/JALQZZaw4yHzcy+3lE/2hOQouwAZVsgi1yfu+renNmThdwbRzsQM4se6ENIO/zh16oY/Jbs= diff --git a/README.md b/README.md index c379f29..80d9658 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Structure [![GoDoc](https://godoc.org/github.com/fatih/structure?status.svg)](http://godoc.org/github.com/fatih/structure) [![Build Status](https://travis-ci.org/fatih/structure.svg)](https://travis-ci.org/fatih/structure) +# Structure [![GoDoc](https://godoc.org/github.com/fatih/structure?status.svg)](http://godoc.org/github.com/fatih/structure) [![Build Status](https://travis-ci.org/fatih/structure.svg)](https://travis-ci.org/fatih/structure) [![Coverage Status](https://img.shields.io/coveralls/fatih/structure.svg)](https://coveralls.io/r/fatih/structure) Structure contains various utilities to work with Go (Golang) structs. It was initially used by me to convert a struct into a `map[string]interface{}`. With