Added .travis.yml and have Build.PL exit with non-zero in case of failure

This commit is contained in:
Alessandro Ranellucci 2013-09-19 10:42:49 +02:00
parent 40fd7418cd
commit 7765787172
2 changed files with 10 additions and 1 deletions

7
.travis.yml Normal file
View File

@ -0,0 +1,7 @@
script: perl ./Build.PL
perl:
- "5.14"
- "5.12"
branches:
only:
- master

View File

@ -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__