add make distcheck and Module::Build to Travis tests

This commit is contained in:
Adam Spiers 2015-11-16 22:47:34 +00:00
parent b52d7890f8
commit 21ffd2dfec
2 changed files with 15 additions and 2 deletions

View file

@ -11,8 +11,11 @@ addons:
- texinfo - texinfo
- texlive - texlive
- texi2html - texi2html
before_install: install:
- autoreconf --install - autoreconf --install
- eval `perl -V:siteprefix` - eval `perl -V:siteprefix`
- ./configure --prefix=$siteprefix && make - ./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

View file

@ -147,6 +147,16 @@ lib/Stow/Util.pm: lib/Stow/Util.pm.in Makefile.am
# The below rules should only be needed by developers. # 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 doc/stow.8: bin/stow.in Makefile.am
[ -d doc ] || mkdir doc # required in vpath mode [ -d doc ] || mkdir doc # required in vpath mode
$(edit) < $< | pod2man > $@ $(edit) < $< | pod2man > $@