Skip to content

Commit

Permalink
Merge pull request #95 from ghedo/code-coverage
Browse files Browse the repository at this point in the history
Run coverage tests
  • Loading branch information
jacquesg committed May 1, 2014
2 parents ad5a11a + 16c645a commit 7628b16
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ t/callbacks_repo
.*\.a
.*\.pc$
deps/libgit2/tests/resources/status/这
cover_db/
.*\.gcda
.*\.gcno
5 changes: 4 additions & 1 deletion lib/Git/Raw.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ use Git::Raw::Repository;

=for HTML
<a href="https://travis-ci.org/ghedo/p5-Git-Raw">
<img src="https://travis-ci.org/ghedo/p5-Git-Raw.svg?branch=master" align="right">
<img src="https://travis-ci.org/ghedo/p5-Git-Raw.svg?branch=master" alt="Build Status" align="right" />
</a>
<a href="https://coveralls.io/r/ghedo/p5-Git-Raw">
<img src="https://coveralls.io/repos/ghedo/p5-Git-Raw/badge.png?branch=master" alt="Coverage Status" align="right" />
</a>
=cut

Expand Down

0 comments on commit 7628b16

Please sign in to comment.