]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI/azure: make `MAKEFLAGS` global to parallelize all jobs
authorViktor Szakats <commit@vsz.me>
Tue, 26 Sep 2023 11:24:02 +0000 (11:24 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 26 Sep 2023 22:08:39 +0000 (22:08 +0000)
https://dev.azure.com/daniel0244/curl/_build/results?buildId=17528 (before)
https://dev.azure.com/daniel0244/curl/_build/results?buildId=17545 (after, with -j3)

Closes #11952

.azure-pipelines.yml

index 6c8d84b8c3e1c05c388e16b96d0d4107fc37b621..66aa42ada7d11bf15af7d7ee5c2e6ce926f4f7dd 100644 (file)
@@ -55,6 +55,9 @@ pr:
     - 'packages/*'
     - 'plan9/*'
 
+variables:
+  MAKEFLAGS: '-j 2'
+
 stages:
 
 ##########################################
@@ -106,8 +109,6 @@ stages:
 
     - script: make V=1 && make V=1 examples && cd tests && make V=1
       displayName: 'compile'
-      env:
-        MAKEFLAGS: "-j 2"
 
     - script: make V=1 test-ci
       displayName: 'test'
@@ -290,8 +291,6 @@ stages:
 
     - script: $(container_cmd) -l -c "cd $(echo '%cd%') && make V=1 && make V=1 examples && cd tests && make V=1"
       displayName: 'compile'
-      env:
-        MAKEFLAGS: "-j 2"
 
     - script: $(container_cmd) -l -c "cd $(echo '%cd%') && make V=1 install && PATH=/usr/bin:/bin find . -type f -path '*/.libs/*.exe' -print -execdir mv -t .. {} \;"
       displayName: 'install'