mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 11:02:24 +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
|
|
@ -36,7 +36,6 @@ for my $file (@{$modified}) {
|
|||
if ($buildneeded) {
|
||||
writelog "Post push github web hook for repository $repo, branch $branch, name $name. Build required.";
|
||||
|
||||
|
||||
my $child = fork;
|
||||
if (not defined $child) {die "Fork failed.";}
|
||||
if ($child) {
|
||||
|
|
@ -45,7 +44,7 @@ if ($buildneeded) {
|
|||
close(STDIN); close(STDOUT); close(STDERR); # child process
|
||||
system 'echo Syncing voc>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;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue