mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 14:32:24 +00:00
Test build progress
This commit is contained in:
parent
d97668a209
commit
3cd3376139
3 changed files with 107 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ use JSON;
|
|||
|
||||
sub writelog {
|
||||
my ($msg) = @_;
|
||||
|
||||
|
||||
open(LOG, ">>/tmp/postpush.log") or die "Could not create postpush.log";
|
||||
flock(LOG, 2) or die "Could not lock postpush.log";
|
||||
print LOG sprintf("%s %s\n", strftime("%Y/%m/%d %H.%M.%S", localtime), $msg);
|
||||
|
|
@ -36,12 +36,13 @@ my $child = fork;
|
|||
if (not defined $child) {die "Fork failed.";}
|
||||
if ($child) {
|
||||
# parent process
|
||||
writelog "Started ssh, pid = $child.";
|
||||
writelog "Started buildall, pid = $child.";
|
||||
} else {
|
||||
# child process
|
||||
exec 'ssh root@oberon "perl vishap/voc/src/tools/testcoordinator/buildall.pl >/tmp/buildall.log &"';
|
||||
close(STDIN); close(STDOUT); close(STDERR);
|
||||
exec 'perl /var/lib/nethserver/ibay/githubhook/buildall.pl >/tmp/buildall.log';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
print header(),
|
||||
start_html("Vishap Oberon github post push web hook."),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue