The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# DO NOT EDIT
#
# This .travis.yml file generated by Zilla-Dist-[%zilla_dist.version%].
#
# To update it, run:
#
#   > zild update
#

language: perl

perl:
- '5.20'
- '5.18'
- '5.16'
- '5.14'
- '5.12'
- '5.10'
- '5.8'

install:
[% IF testbase -%]
- git clone --depth=1
  git://github.com/ingydotnet/test-base-pm ../test-base-pm
[% END -%]
[% IF testml -%]
- git clone --depth=1
  git://github.com/ingydotnet/testml-pm ../testml-pm
- git clone --depth=1
  git://github.com/ingydotnet/pegex-pm ../pegex-pm
[% END -%]
- cpanm --quiet --notest
  Devel::Cover::Report::Coveralls
[% FOR module = RequiredModules.sort -%]
[% IF module != 'perl' -%]
  [% module %]
[% END -%]
[% END -%]
[% IF include_testbase -%]
  Test::Base
[% END -%]
[% IF include_testml -%]
  TestML
[% END -%]

script:
- true && [ ! -e test/ ] ||
  PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine
[% IF testbase -%]
  PERL5LIB=../test-base-pm/lib
[% END -%]
  prove -lv test/
- true && [ ! -e test/ ] || cover

after_success:
- cover -report coveralls

[% IF devel.irc -%]
notifications:
  irc:
    channels:
    - [% devel.irc %]
    on_success: change
    on_failure: always
    skip_join: true
[% END -%]

# Hack to not run on tag pushes:
branches:
  except:
  - /^v?[0-9]+\.[0-9]+/