From ba243c0a610b5060ea5b20826cc643e1c5c97e0a Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Fri, 28 Jun 2019 20:21:41 +0100 Subject: 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. --- .travis.yml | 2 ++ configure.ac | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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]) -- cgit v1.2.1