Added .travis.yml and have Build.PL exit with non-zero in case of failure
This commit is contained in:
parent
40fd7418cd
commit
7765787172
7
.travis.yml
Normal file
7
.travis.yml
Normal file
@ -0,0 +1,7 @@
|
||||
script: perl ./Build.PL
|
||||
perl:
|
||||
- "5.14"
|
||||
- "5.12"
|
||||
branches:
|
||||
only:
|
||||
- master
|
4
Build.PL
4
Build.PL
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user