mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Added .travis.yml and have Build.PL exit with non-zero in case of failure
This commit is contained in:
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__
|
||||
|
||||
Reference in New Issue
Block a user