mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 06:22:25 +00:00
Make autobuild use latest changed branch.
This commit is contained in:
parent
c21975dc2a
commit
61eb8199d4
2 changed files with 3 additions and 2 deletions
|
|
@ -6,6 +6,8 @@ use Cwd;
|
||||||
|
|
||||||
my $branch = "master";
|
my $branch = "master";
|
||||||
|
|
||||||
|
if (defined($ARGV[0]) && ($ARGV[0] ne "")) {$branch = $ARGV[0]}
|
||||||
|
|
||||||
my %machines = (
|
my %machines = (
|
||||||
"pi" => ['pi@pie', "sudo", "projects/oberon/vishap/voc", "make full"],
|
"pi" => ['pi@pie', "sudo", "projects/oberon/vishap/voc", "make full"],
|
||||||
"darwin" => ['dave@dcb', "sudo", "projects/oberon/vishap/voc", "make full"],
|
"darwin" => ['dave@dcb', "sudo", "projects/oberon/vishap/voc", "make full"],
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ for my $file (@{$modified}) {
|
||||||
if ($buildneeded) {
|
if ($buildneeded) {
|
||||||
writelog "Post push github web hook for repository $repo, branch $branch, name $name. Build required.";
|
writelog "Post push github web hook for repository $repo, branch $branch, name $name. Build required.";
|
||||||
|
|
||||||
|
|
||||||
my $child = fork;
|
my $child = fork;
|
||||||
if (not defined $child) {die "Fork failed.";}
|
if (not defined $child) {die "Fork failed.";}
|
||||||
if ($child) {
|
if ($child) {
|
||||||
|
|
@ -45,7 +44,7 @@ if ($buildneeded) {
|
||||||
close(STDIN); close(STDOUT); close(STDERR); # child process
|
close(STDIN); close(STDOUT); close(STDERR); # child process
|
||||||
system 'echo Syncing voc>postpush.log';
|
system 'echo Syncing voc>postpush.log';
|
||||||
system '(cd voc && git pull) >>postpush.log';
|
system '(cd voc && git pull) >>postpush.log';
|
||||||
exec 'perl voc/src/tools/make/buildall.pl >/tmp/buildall.log';
|
exec 'perl voc/src/tools/make/buildall.pl $branch >/tmp/buildall.log';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue