Browse Source

Add coveralls.io integration, test on more perls

George S. Baugh 8 years ago
parent
commit
473dc239f3
2 changed files with 18 additions and 2 deletions
  1. 17 1
      .travis.yml
  2. 1 1
      README.md

+ 17 - 1
.travis.yml

@@ -1,6 +1,7 @@
 sudo: false
 language: perl
 perl:
+   - '5.22'
    - '5.20'
    - '5.18'
    - '5.16'
@@ -9,12 +10,27 @@ perl:
    - '5.10'
 matrix:
    fast_finish: true
+   include:
+     - perl: '5.24'
+       env: COVERAGE=1
 before_install:
    - git config --global user.name "TravisCI"
    - git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org"
+   - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
+   - source ~/travis-perl-helpers/init
+   - build-perl
+   - perl -V
 install:
+   - cpan-install --coverage   # installs converage prereqs, if enabled
+   - cpanm --quiet --notest Devel::Cover::Report::Coveralls #send to coveralls
+   - cpanm --quiet --notest Dist::Zilla::App::Command::cover #make sure we can dzil cover
    - cpanm --quiet --notest --skip-satisfied Dist::Zilla
    - "dzil authordeps          --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest"
    - "dzil listdeps   --author --missing | grep -vP '[^\\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest"
+before_script:
+  - coverage-setup
 script:
-   - dzil smoke --release --author
+   - AUTHOR_TESTING=1 RELEASE_TESTING=1 dzil cover
+   - export BUILDDIR=`find .build -name cover_db`; cd `dirname $BUILDDIR`
+after_success:
+  - coverage-report

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-# Selenium::Remote::Driver [![Build Status](https://travis-ci.org/teodesian/Selenium-Remote-Driver.svg?branch=master)](https://travis-ci.org/teodesian/Selenium-Remote-Driver)
+# Selenium::Remote::Driver [![Build Status](https://travis-ci.org/teodesian/Selenium-Remote-Driver.svg?branch=master)](https://travis-ci.org/teodesian/Selenium-Remote-Driver) [![Coverage Status](https://coveralls.io/repos/github/teodesian/Selenium-Remote-Driver/badge.svg?branch=master)](https://coveralls.io/github/teodesian/Selenium-Remote-Driver?branch=master)
 
 [Selenium WebDriver][wd] is a test tool that allows you to write
 automated web application UI tests in any programming language against