From 1f803747dea54c9a6cf39cbd8b2bc3545799b1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 15 Jan 2017 21:12:58 +0000 Subject: [PATCH] Add Coveralls badge --- .travis.yml | 4 ++++ README.md | 1 + 2 files changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3dfdbb57e..0ebf0dcf2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,12 @@ go: - 1.7.x - 1.8beta2 +before_install: + - go get github.com/mattn/goveralls + script: - bash --version - go test ./... - go test -short -race ./... - shfmt -version + - goveralls -service=travis-ci diff --git a/README.md b/README.md index 9ae2c69ce..a4abf4af3 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![GoDoc](https://godoc.org/github.com/mvdan/sh?status.svg)](https://godoc.org/github.com/mvdan/sh) [![Build Status](https://travis-ci.org/mvdan/sh.svg?branch=master)](https://travis-ci.org/mvdan/sh) +[![Coverage Status](https://coveralls.io/repos/github/mvdan/sh/badge.svg?branch=master)](https://coveralls.io/github/mvdan/sh) A shell parser and formatter. Supports [POSIX Shell] and [Bash].