+sub noninteractive {
+ # CONTINUOUS_INTEGRATION gets set when running under Travis, see
+ # https://docs.travis-ci.com/user/ci-environment/ and
+ # https://github.com/travis-ci/travis-ci/issues/1337
+ return (! -t STDOUT) || (
+ defined($ENV{CONTINUOUS_INTEGRATION}) &&
+ $ENV{CONTINUOUS_INTEGRATION} eq 'true');
+}
+