my $c = 0;
my %job;
my $line=0;
+ my $type;
$job{'file'} = "zuul.d/jobs.yaml";
$job{'service'} = "zuul";
while(<G>) {
#print "L: ($jobmode / $env) $_";
if($_ =~ /^- job:/) {
$jobmode = 1; # start a new
+ $type="configure";
}
if($jobmode) {
if($apt) {
my ($var, $value) = ($1, $2);
if($var eq "C") {
- $var = "configure";
+ $var = $type;
}
elsif($var eq "T") {
$var = "tests";
+ if($value eq "cmake") {
+ # otherwise it remains configure
+ $type = "cmake";
+ }
}
elsif($var eq "CC") {
$var = "compiler";