From 8d88fdb33df9ea4895cf117669223e1e1ebe0ad4 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 11 Feb 2015 14:15:46 -0800 Subject: [PATCH] add coveralls support * and coverage badge to README --- .travis.yml | 6 ++++++ README.md | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ebf5d08..e980c41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,9 @@ perl: - "5.18" - "5.16" - "5.8" + +before_install: + - cpanm -n Devel::Cover::Report::Coveralls + +after_script: + - cover -test -report coveralls diff --git a/README.md b/README.md index 6fdee0e..9e37987 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ - -![Build Status](https://travis-ci.org/smtpd/qpsmtpd.svg?branch=master "Build -Status") +[![Build Status][ci-img]][ci-url] +[![Coverage Status][cov-img]][cov-url] # Qpsmtpd - qmail perl simple mail transfer protocol daemon @@ -177,3 +176,9 @@ If the logfile doesn't give away the problem, then post to the mailinglist (subscription instructions above). If possible, put the logfile on a webserver and include a reference to it in the mail. + +[cov-img]: https://coveralls.io/repos/smtpd/qpsmtpd/badge.svg +[cov-url]: https://coveralls.io/r/smtpd/qpsmtpd +[ci-img]: https://travis-ci.org/smtpd/qpsmtpd.svg?branch=master +[ci-url]: https://travis-ci.org/smtpd/qpsmtpd +