From 21ffd2dfece9cb3064d8e684ed52fd018de2ddb2 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 16 Nov 2015 22:47:34 +0000 Subject: [PATCH] add make distcheck and Module::Build to Travis tests --- .travis.yml | 7 +++++-- Makefile.am | 10 ++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a7ac3d3..21a16eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,8 +11,11 @@ addons: - texinfo - texlive - texi2html -before_install: +install: - autoreconf --install - eval `perl -V:siteprefix` - ./configure --prefix=$siteprefix && make -after_failure: find /home/travis/.cpanm/ -name build.log | xargs grep . + - make cpanm +script: + - make distcheck + - perl Build.PL && ./Build distcheck diff --git a/Makefile.am b/Makefile.am index fa1e96c..fd59c77 100644 --- a/Makefile.am +++ b/Makefile.am @@ -147,6 +147,16 @@ lib/Stow/Util.pm: lib/Stow/Util.pm.in Makefile.am # The below rules should only be needed by developers. ############################################################################## +cpanm: + cpanm --quiet --installdeps --notest .; \ + CPANM_RESULT=$$?; \ + if [ $$CPANM_RESULT != 0 ]; then \ + echo ---------------------------------------------------; \ + cat ~/.cpanm/build.log; \ + echo ---------------------------------------------------; \ + exit $$CPANM_RESULT; \ + fi + doc/stow.8: bin/stow.in Makefile.am [ -d doc ] || mkdir doc # required in vpath mode $(edit) < $< | pod2man > $@