]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Enable runner-specific make concurrency settings
authorMichał Kępień <michal@isc.org>
Fri, 9 Mar 2018 13:09:28 +0000 (14:09 +0100)
committerOndřej Surý <ondrej@sury.org>
Fri, 9 Mar 2018 16:29:24 +0000 (12:29 -0400)
Using fixed make concurrency settings on all runners is not flexible and
requires .gitlab-ci.yml to be modified each time tweaking these settings
is needed.  Use environment variables which are expected to be set by
the runner (defaulting to 1 in case they are not set) for controlling
make concurrency.

.gitlab-ci.yml

index e05008b041348fab7d27190729efa87d28d4162e..34c39b5b11003649a2f89a364a2225bd499ebeca 100644 (file)
@@ -89,7 +89,7 @@ stages:
     - ./autogen.sh
   script:
     - ./configure --enable-developer --with-libtool --disable-static --with-atf=/usr/local
-    - make -j${BUILD_PARALLEL_JOBS:-2} -k all V=1
+    - make -j${PARALLEL_JOBS_BUILD:-1} -k all V=1
   artifacts:
     expire_in: '1 hour'
     untracked: true
@@ -99,7 +99,7 @@ stages:
   before_script:
     - bash -x bin/tests/system/ifconfig.sh up
   script:
-    - cd bin/tests && make -j${TEST_PARALLEL_JOBS:-4} -k test V=1
+    - cd bin/tests && make -j${TEST_PARALLEL_JOBS:-1} -k test V=1
   artifacts:
     untracked: true
     expire_in: '1 week'