[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/20: gnu: Add ruby-parallel-tests.
From: |
guix-commits |
Subject: |
12/20: gnu: Add ruby-parallel-tests. |
Date: |
Wed, 20 May 2020 17:53:33 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 2156cc9cd60e8adde475e25f45128e324ea9dff3
Author: Marius Bakke <address@hidden>
AuthorDate: Wed May 20 18:42:51 2020 +0200
gnu: Add ruby-parallel-tests.
* gnu/packages/ruby.scm (ruby-parallel-tests): New public variable.
---
gnu/packages/ruby.scm | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 3201f9f..363ee85 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -3993,6 +3993,70 @@ for select languages.")
(home-page "http://coderay.rubychan.de")
(license license:expat)))
+(define-public ruby-parallel-tests
+ (package
+ (name "ruby-parallel-tests")
+ (version "2.32.0")
+ (home-page "https://github.com/grosser/parallel_tests")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (string-append name version))
+ (sha256
+ (base32
+ "0l2rjz9fnxv7hvz679v7a75mghsh9x9qpvbyapiavqsx21v42l7m"))))
+ (build-system ruby-build-system)
+ (arguments
+ '(#:test-target "default"
+ #:phases (modify-phases %standard-phases
+ (add-after 'patch-source-shebangs 'patch-shell-invokations
+ (lambda _
+ (substitute* '("lib/parallel_tests/tasks.rb"
+ "spec/parallel_tests/tasks_spec.rb")
+ (("/bin/sh") (which "sh"))
+ (("/bin/bash") (which "bash")))
+ #t))
+ (add-before 'check 'remove-version-constraints
+ (lambda _
+ ;; Remove hard coded version constraints, instead just
+ ;; use whatever versions are available in Guix.
+ (delete-file "Gemfile.lock")
+ (substitute* "Gemfile"
+ (("'minitest',.*")
+ "'minitest'\n")
+ (("'cucumber',.*")
+ "'cucumber'\n"))
+ #t))
+ (add-before 'check 'disable-rails-test
+ (lambda _
+ ;; XXX: This test attempts to download and run the test
+ ;; suites of multiple Rails versions(!) directly.
+ (delete-file "spec/rails_spec.rb")
+ #t))
+ (add-before 'check 'set-HOME
+ (lambda _
+ ;; Some tests check the output of Bundler, and fail when
+ ;; Bundler warns that /homeless-shelter does not exist.
+ (setenv "HOME" "/tmp")
+ #t)))))
+ (native-inputs
+ `(("ruby-bump" ,ruby-bump)
+ ("ruby-cucumber" ,ruby-cucumber)
+ ("ruby-minitest" ,ruby-minitest)
+ ("ruby-rake" ,ruby-rake)
+ ("ruby-rspec" ,ruby-rspec)
+ ("ruby-spinach" ,ruby-spinach)))
+ (propagated-inputs
+ `(("ruby-parallel" ,ruby-parallel)))
+ (synopsis "Run tests in parallel")
+ (description
+ "This package can speed up @code{Test::Unit}, @code{RSpec},
+@code{Cucumber}, and @code{Spinach} tests by running them concurrently
+across multiple CPU cores.")
+ (license license:expat)))
+
(define-public ruby-parser
(package
(name "ruby-parser")
- 05/20: gnu: ruby-mocha: Update to 1.11.2., (continued)
- 05/20: gnu: ruby-mocha: Update to 1.11.2., guix-commits, 2020/05/20
- 06/20: gnu: ruby-mocha: Update license., guix-commits, 2020/05/20
- 08/20: gnu: Add ruby-fakefs., guix-commits, 2020/05/20
- 09/20: gnu: Add ruby-gherkin-ruby., guix-commits, 2020/05/20
- 10/20: gnu: Add ruby-colorize., guix-commits, 2020/05/20
- 13/20: gnu: Add ruby-forking-test-runner., guix-commits, 2020/05/20
- 14/20: gnu: Add ruby-fast-gettext., guix-commits, 2020/05/20
- 15/20: gnu: varnish-modules: Update to 0.16.0., guix-commits, 2020/05/20
- 20/20: gnu: python-shouldbe: Python 3.8 compatibility., guix-commits, 2020/05/20
- 11/20: gnu: Add ruby-spinach., guix-commits, 2020/05/20
- 12/20: gnu: Add ruby-parallel-tests.,
guix-commits <=
- 16/20: gnu: varnish-modules: Update description., guix-commits, 2020/05/20
- 17/20: gnu: fontconfig: Add replacement with font-dejavu instead of gs-fonts., guix-commits, 2020/05/20
- 18/20: gnu: Add python-random-user-agent., guix-commits, 2020/05/20
- 19/20: gnu: racket-minimal: Fix hash for version 7.7., guix-commits, 2020/05/20