This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=4379444763193c4675a24f1faabd3859d8a743b1

commit 4379444763193c4675a24f1faabd3859d8a743b1 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Oct 21 03:50:50 2023 +0200

    build: Run make in parallel for autotest and TAP test jobs
    
    Do not just run the actual tests in parallel, but also the building of
    any needed artifacts.
---
 .gitlab-ci.yml | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f9e0f2eed..333980b07 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@ dist-check:
   stage: test
   script:
     - ./configure
-    - make distcheck
+    - make -j$(nproc) distcheck
 
 # Test whether the author checks pass.
 author-check:
@@ -22,14 +22,16 @@ author-check:
   script:
     - eatmydata apt -P pkg.dpkg.author-testing build-dep -qq -y .
     - ./configure
-    - make authorcheck TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
+    - make -j$(nproc) authorcheck
+           TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
 
 # Test whether the sanitized unit tests pass.
 unit-tests:
   stage: test
   script:
     - ./configure --enable-compiler-sanitizer
-    - make -C lib check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
+    - make -j$(nproc) -C lib check
+           TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
 
 # Test whether the unit tests pass on a VPATH build.
 vpath-tests:
@@ -38,14 +40,16 @@ vpath-tests:
     - mkdir -p build-tree
     - cd build-tree
     - ../configure
-    - make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
+    - make -j$(nproc) check
+           TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
 
 # Test whether we can build the shared library.
 shlib-tests:
   stage: test
   script:
     - AUTHOR_TESTING=1 ./configure --enable-shared
-    - make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
+    - make -j$(nproc) check
+           TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc)
 
 # Test whether the functional tests pass.
 func-tests:

-- 
Dpkg.Org's dpkg

Reply via email to