guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: subversion: Support running the tests in par


From: guix-commits
Subject: branch master updated: gnu: subversion: Support running the tests in parallel.
Date: Tue, 11 Feb 2020 03:40:44 -0500

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

cbaines pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 59796df  gnu: subversion: Support running the tests in parallel.
59796df is described below

commit 59796dfd63f25f91238e4c1cb68a0b41cad5b848
Author: Christopher Baines <address@hidden>
AuthorDate: Thu Feb 6 08:36:12 2020 +0000

    gnu: subversion: Support running the tests in parallel.
    
    This drops the time to build the package on my machine from ~14 minutes to 
~5
    minutes.
    
    * gnu/packages/version-control.scm (subversion)[arguments]: Add set-PARALLEL
    phase to set the PARALLEL environment variable.
---
 gnu/packages/version-control.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 2ca64e4..6935869 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1448,6 +1448,10 @@ following features:
              (substitute* "subversion/tests/libsvn_repos/repos-test.c"
                (("#!/bin/sh") (string-append "#!" (which "sh"))))
              #t))
+         (add-before 'check 'set-PARALLEL
+           (lambda _
+             (setenv "PARALLEL" (number->string (parallel-job-count)))
+             #t))
          (add-after 'install 'install-perl-bindings
            (lambda* (#:key outputs #:allow-other-keys)
              ;; Follow the instructions from 
'subversion/bindings/swig/INSTALL'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]