summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Spiers <stow@adamspiers.org>2019-06-28 20:21:41 +0100
committerAdam Spiers <stow@adamspiers.org>2019-06-28 20:28:22 +0100
commitba243c0a610b5060ea5b20826cc643e1c5c97e0a (patch)
treebea0c18dfd0dac4e8464b432961e532849a0bb9c
parent651f1e650300ef96bb84e5417287adda9773550a (diff)
downloadstow-ba243c0a610b5060ea5b20826cc643e1c5c97e0a.tar.gz
Allow make to fail if missing modules for test dependencies
e.g. make STRICT_TESTS=1 However we don't need this in .travis.yml as explained in the comments.
-rw-r--r--.travis.yml2
-rw-r--r--configure.ac5
2 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index f41c75f..cbd4ef6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,7 +15,9 @@ before_install:
install:
- autoreconf --install
- eval `perl -V:siteprefix`
+ # Note: this will complain Test::Output isn't yet installed:
- ./configure --prefix=$siteprefix && make
+ # but that's OK because we install it here:
- make cpanm
script:
- make distcheck
diff --git a/configure.ac b/configure.ac
index d22b1d4..699a88b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,9 +99,12 @@ EOF
!
! Please (re-)read INSTALL, then install the missing modules
! and try again.
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
EOF
+ if test -n "$STRICT_TESTS"; then
+ exit 1
+ fi
fi
]])
AC_SUBST([PMDIR])