From 5cfd9ea5861e2494b6edf64b2052f37b5b574320 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Wed, 19 Aug 2015 11:06:47 +0200 Subject: [PATCH] Add coveralls.io to display test coverage --- .travis.yml | 5 +++++ README.md | 1 + 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 242d3ff..bfce0af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,8 @@ before_install: - sudo apt-get install -qq vsftpd - sudo cp $TRAVIS_BUILD_DIR/.vsftpd.conf /etc/vsftpd.conf - sudo service vsftpd restart +- go get github.com/axw/gocov/gocov +- go get github.com/mattn/goveralls +- go get golang.org/x/tools/cmd/cover +script: +- $GOPATH/bin/goveralls -service=travis-ci diff --git a/README.md b/README.md index 38b6b08..df9ad94 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # goftp # [![Build Status](https://travis-ci.org/jlaffaye/ftp.svg?branch=master)](https://travis-ci.org/jlaffaye/ftp) +[![Coverage Status](https://coveralls.io/repos/jlaffaye/ftp/badge.svg?branch=master&service=github)](https://coveralls.io/github/jlaffaye/ftp?branch=master) A FTP client package for Go