Browse Source

Add coveralls.io to display test coverage

Julian Kornberger 10 years ago
parent
commit
5cfd9ea586
2 changed files with 6 additions and 0 deletions
  1. 5 0
      .travis.yml
  2. 1 0
      README.md

+ 5 - 0
.travis.yml

@@ -7,3 +7,8 @@ before_install:
 - sudo apt-get install -qq vsftpd
 - sudo apt-get install -qq vsftpd
 - sudo cp $TRAVIS_BUILD_DIR/.vsftpd.conf /etc/vsftpd.conf
 - sudo cp $TRAVIS_BUILD_DIR/.vsftpd.conf /etc/vsftpd.conf
 - sudo service vsftpd restart
 - 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

+ 1 - 0
README.md

@@ -1,6 +1,7 @@
 # goftp #
 # goftp #
 
 
 [![Build Status](https://travis-ci.org/jlaffaye/ftp.svg?branch=master)](https://travis-ci.org/jlaffaye/ftp)
 [![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
 A FTP client package for Go