[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/17: gnu: ruby-cucumber: Enable more tests.
From: |
guix-commits |
Subject: |
06/17: gnu: ruby-cucumber: Enable more tests. |
Date: |
Sat, 11 Jul 2020 14:30:35 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit fa8e4dbf38d018006f0d8ab3eb8a56942609d1f9
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Jul 9 21:44:10 2020 -0400
gnu: ruby-cucumber: Enable more tests.
* gnu/packages/ruby.scm (ruby-cucumber)[test-target]: Use the default
test-target, which includes the cucumber tests target.
[phases]: Add the 'disable-rubocop and 'set-home phases. Delete Gemfile as
part of the 'strip-version-requirements phase.
---
gnu/packages/ruby.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 685ee04..18da48a 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6688,14 +6688,26 @@ master/html-formatter/ruby")
"0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "spec"
+ '(#:test-target "default"
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'disable-rubocop
+ ;; Rubocop lint check fails with our more recent version.
+ (lambda _
+ (substitute* "Rakefile"
+ (("spec cucumber rubocop")
+ "spec cucumber"))
+ #t))
(add-after 'extract-gemspec 'strip-version-requirements
(lambda _
+ (delete-file "Gemfile") ;do not use Bundler
(substitute* "cucumber.gemspec"
(("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
(string-append stripped "\n")))
+ #t))
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" (getcwd))
#t)))))
(propagated-inputs
`(("ruby-builder" ,ruby-builder)
- branch master updated (3e26bec -> 661ad8d), guix-commits, 2020/07/11
- 01/17: gnu: ruby-asciimath: Update to 2.0.1., guix-commits, 2020/07/11
- 04/17: gnu: ruby-yard: Update to 0.9.25., guix-commits, 2020/07/11
- 06/17: gnu: ruby-cucumber: Enable more tests.,
guix-commits <=
- 02/17: gnu: ruby-yard: Disable tests., guix-commits, 2020/07/11
- 08/17: gnu: ruby-tilt: Update to 2.0.10., guix-commits, 2020/07/11
- 11/17: gnu: Add ruby-slim., guix-commits, 2020/07/11
- 05/17: gnu: ruby-sinatra: Update to 2.0.8.1., guix-commits, 2020/07/11
- 03/17: gnu: Add ruby-yard-with-tests., guix-commits, 2020/07/11
- 07/17: gnu: Add ruby-pandoc-ruby., guix-commits, 2020/07/11
- 12/17: gnu: ruby-asciidoctor: Re-indent., guix-commits, 2020/07/11
- 13/17: gnu: ruby-asciidoctor: Update to 2.0.10., guix-commits, 2020/07/11
- 09/17: gnu: ruby-tilt: Add pandoc, sassc support., guix-commits, 2020/07/11
- 16/17: gnu: Add ruby-yard-tomdoc., guix-commits, 2020/07/11