diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..caafa78a --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/Netdisco/Makefile.PL b/Netdisco/Makefile.PL index 60e30583..90a63850 100644 --- a/Netdisco/Makefile.PL +++ b/Netdisco/Makefile.PL @@ -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;