Add Travis CI support (#289)

* Add travis.yml config file

* Add AutoInstall, so we can push our dependencies to cpanm for travis
This commit is contained in:
Dean Hamstead
2017-01-16 04:34:35 +11:00
committed by Oliver Gorwits
parent f533a994f2
commit cb2cf11d6b
2 changed files with 34 additions and 0 deletions

30
.travis.yml Normal file
View File

@@ -0,0 +1,30 @@
language: perl
perl:
- 'blead'
- '5.24'
- '5.22'
- '5.20'
- '5.18'
- '5.16'
- '5.14'
- '5.12'
- '5.10'
- '5.8'
matrix:
allow_failures:
- perl: 'blead'
- perl: '5.8'
fast_finish: true
include:
- perl: '5.24'
env: COVERAGE=1
addons:
apt:
packages:
- libsnmp-dev
# Dist::Zilla would make this easier
before_install:
# for some reason, travis-perl doesnt work out that it needs to install:
- cpanm --quiet --notest DBIx::Class::Optional::Dependencies
- cd Netdisco; perl Makefile.PL; make listalldeps | cpanm --quiet --notest
- eval $(curl https://travis-perl.github.io/init) --auto

View File

@@ -4,6 +4,8 @@ name 'App-Netdisco';
license 'bsd';
all_from 'lib/App/Netdisco.pm';
include 'Module::AutoInstall';
test_requires 'Test::More' => 0.88;
test_requires 'Env::Path' => 0;
@@ -102,4 +104,6 @@ resources
MailingList => 'https://lists.sourceforge.net/lists/listinfo/netdisco-users',
IRC => 'irc://irc.freenode.org/#netdisco';
installdeps_target;
WriteAll;