add make distcheck and Module::Build to Travis tests
This commit is contained in:
parent
b52d7890f8
commit
21ffd2dfec
2 changed files with 15 additions and 2 deletions
|
@ -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
|
||||
|
|
10
Makefile.am
10
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 > $@
|
||||
|
|
Loading…
Reference in a new issue