summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Spiers <stow@adamspiers.org>2015-11-16 22:47:34 +0000
committerAdam Spiers <stow@adamspiers.org>2015-11-17 01:35:47 +0000
commit21ffd2dfece9cb3064d8e684ed52fd018de2ddb2 (patch)
tree80648c729370c1b726fb1cb5a1c197e22193749b
parentb52d7890f86385ca7892a58a4624c6ae3e5169d9 (diff)
downloadstow-21ffd2dfece9cb3064d8e684ed52fd018de2ddb2.tar.gz
add make distcheck and Module::Build to Travis tests
-rw-r--r--.travis.yml7
-rw-r--r--Makefile.am10
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 > $@