Skip to content

Commit

Permalink
builder: added check for missing DEPEND/RDEPEND in QA phase
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Sep 10, 2016
1 parent 1c4389a commit a66dc7b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions builder
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ my $equo_masks = $ENV{EQUO_MASKS};
my $equo_unmasks = $ENV{EQUO_UNMASKS};
my $equo_install_args = $ENV{EQUO_INSTALL_ARGS} // "--multifetch=10";
my $remote_overlay = $ENV{REMOTE_OVERLAY};
my $repoman_check = $ENV{QA_CHECKS} // 0;
my $qualityassurance_checks = $ENV{QA_CHECKS} // 0;
my $remote_conf_portdir = $ENV{REMOTE_CONF_PORTDIR};
my $remote_portdir = $ENV{REMOTE_PORTDIR};

Expand Down Expand Up @@ -494,7 +494,7 @@ if ($use_equo) {
}
}

if ( $repoman_check == 1 ) {
if ( $qualityassurance_checks == 1 ) {
say "*** Repoman checks ***";
for ( @packages, @injected_packages ) {
say "*** QA checks for $_";
Expand Down Expand Up @@ -534,6 +534,15 @@ if ($preserved_rebuild) {

}

if ( $qualityassurance_checks == 1 ) {
say "*** Missing dependencies checks ***";
for ( @packages ) {
say "*** DEPEND for $_";
system("dynlink-scanner $_");
system("depcheck $_");
}
}

# Copy files to artifacts folder
system(
"mkdir -p $artifacts_folder;cp -rfv /usr/portage/packages $artifacts_folder"
Expand Down

0 comments on commit a66dc7b

Please sign in to comment.