diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-09-19 12:42:49 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-09-19 12:42:49 +0400 |
commit | 77657871721a5eeb5e9ae5bd7d13ca7bcebae247 (patch) | |
tree | 571a94cbeb98c110b1638ca8c4058fa8b0e6e13f /Build.PL | |
parent | 40fd7418cde5745864a3c37853d6fe1c953e6cdd (diff) |
Added .travis.yml and have Build.PL exit with non-zero in case of failure
Diffstat (limited to 'Build.PL')
-rw-r--r-- | Build.PL | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -131,12 +131,14 @@ EOF if ($missing_prereqs) { exit 1; } else { + my $res = 0; if (eval "use App::Prove; 1") { - App::Prove->new->run; + $res = App::Prove->new->run ? 0 : 1; } if (!$gui) { print "If you also want to use the GUI you can now run `perl Build.PL --gui` to install the required modules.\n"; } + exit $res; } __END__ |