]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/cijobs.pl: detect zuul cmake jobs better
authorDaniel Stenberg <daniel@haxx.se>
Sat, 12 Feb 2022 15:56:06 +0000 (16:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 12 Feb 2022 15:56:06 +0000 (16:56 +0100)
scripts/cijobs.pl

index b6a437a39c7d71bc88b355c71386f9b058ab166d..ec506833b3cbf31ba6688469958cf2bd70698e6e 100755 (executable)
@@ -402,6 +402,7 @@ sub zuul {
     my $c = 0;
     my %job;
     my $line=0;
+    my $type;
     $job{'file'} = "zuul.d/jobs.yaml";
     $job{'service'} = "zuul";
     while(<G>) {
@@ -409,6 +410,7 @@ sub zuul {
         #print "L: ($jobmode / $env) $_";
         if($_ =~ /^- job:/) {
             $jobmode = 1; # start a new
+            $type="configure";
         }
         if($jobmode) {
             if($apt) {
@@ -433,10 +435,14 @@ sub zuul {
                     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";