2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

test build

This commit is contained in:
hu-weihua 2017-07-05 03:55:15 -04:00
parent 51ec3df5c0
commit 8de802ba10

View File

@ -167,12 +167,17 @@ sub send_back_comment{
# Retrun code:
#--------------------------------------------------------
sub build_xcat_core{
my $cmd = "gpg --list-keys";
my @output = runcmd("$cmd");
if($::RUNCMD_RC){
print "[build_xcat_core] $cmd ....[Failed]\n";
send_back_comment("> **BUILD ERROR** : $cmd .... failed. Please click ``Details`` label in ``Merge pull request`` box for detailed information");
return 1;
my @output;
my @cmds = ("gpg --list-keys",
"sed -i '/SignWith: yes/d' $ENV{'PWD'}/build-ubunturepo");
foreach my $cmd (@cmds){
print "[build_xcat_core] to run $cmd\n";
@output = runcmd("$cmd");
if($::RUNCMD_RC){
print "[build_xcat_core] $cmd ....[Failed]\n";
send_back_comment("> **BUILD ERROR** : $cmd failed. Please click ``Details`` label in ``Merge pull request`` box for detailed information");
return 1;
}
}
$cmd = "sudo ./build-ubunturepo -c UP=0 BUILDALL=1";