From 6e3857b2319c78fe2b72a3d5cf772376032aad94 Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Thu, 1 May 2014 12:01:02 +0200 Subject: [PATCH 1/2] Run coverage tests as part of the build --- .travis.yml | 11 +++++++++-- MANIFEST.SKIP | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ebe4ce29..1048087e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,17 +8,24 @@ perl: - "5.18" - "5.19" +env: + - RELEASE_TESTING=1 NETWORK_TESTING=1 AUTOMATED_TESTING=1 + +cache: + - apt + install: - sudo apt-get -qq update - sudo apt-get -qq install libssl-dev libssh2-1-dev openssh-client openssh-server - - cpanm --notest Dist::Zilla Dist::Zilla::PluginBundle::Author::ALEXBIO Pod::Coverage::TrustPod + - cpanm --quiet --notest Dist::Zilla Dist::Zilla::PluginBundle::Author::ALEXBIO Pod::Coverage::TrustPod + - cpanm --quiet --notest Devel::Cover::Report::Coveralls Dist::Zilla::App::Command::cover - dzil listdeps --missing | cpanm --notest script: - ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys - ssh-keyscan -t rsa localhost >> ~/.ssh/known_hosts - - dzil smoke --release + - dzil cover -ignore_re ^deps -test -report coveralls notifications: recipient: diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 08affed5..c8f800f0 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -8,3 +8,6 @@ t/callbacks_repo .*\.a .*\.pc$ deps/libgit2/tests/resources/status/θΏ™ +cover_db/ +.*\.gcda +.*\.gcno From 16c645a325deaeba162896c2164513a14de9a1d7 Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Thu, 1 May 2014 13:39:28 +0200 Subject: [PATCH 2/2] Added Coveralls badge --- lib/Git/Raw.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Git/Raw.pm b/lib/Git/Raw.pm index 6e7e9125..a12ca0d2 100644 --- a/lib/Git/Raw.pm +++ b/lib/Git/Raw.pm @@ -12,7 +12,10 @@ use Git::Raw::Repository; =for HTML - + Build Status + + + Coverage Status =cut