language: perl
perl:
  - "5.18"
  - "5.16"
  - "5.14"
  - "5.12"
  - "5.10"
  - "5.8"
branches:
 only:
  - stable-2.0
  - devel
  - master
install: "/bin/true"
before_install:
 - "cpanm --notest File::Copy::Recursive"
 - "cpanm --notest File::Slurp"
 - "cpanm --notest HTML::Template"
 - "cpanm --notest IO::Scalar"
 - "cpanm --notest IO::Socket::INET6"
 - "cpanm --notest Log::Log4perl"
 - "cpanm --notest Module::Build"
 - "cpanm --notest Net::SNMP"
 - "cpanm --notest Net::Server"
 - "cpanm --notest Net::SSLeay"
 - "cpanm --notest Test::Deep"
 - "cpanm --notest Test::Differences"
 - "cpanm --notest Test::LongString"
 - "cpanm --notest Test::MockModule"
 - "cpanm --notest Test::MockObject::Extends"
 - "cpanm --notest Time::HiRes"
 - sh contrib/install_rrd.sh
notifications:
  email: false
  irc:
    on_success: change # no need for spam
    on_failure: always
    channels:
      - "irc.oftc.net#munin"
    template:
      - "%{repository} (%{branch} - %{commit} : %{author}): %{message}"
      - "Build details: %{build_url}"
matrix:
  # we don't need to continue any build when 1 test is failing.
  fast_finish: true
