[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/17: gnu: ruby-yard: Disable tests.
From: |
guix-commits |
Subject: |
02/17: gnu: ruby-yard: Disable tests. |
Date: |
Sat, 11 Jul 2020 14:30:34 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 65a61239517f6b45a8728657d55102d2373fe915
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Jul 9 11:49:49 2020 -0400
gnu: ruby-yard: Disable tests.
YARD is a common dependency in the Ruby world; having it carry extra test
dependencies is prone to cause dependency cycles. For example, YARD depends
on Asciidoctor, but the latest Asciidoctor requires ruby-cucumber for its
test
suite, which pulls YARD through many of its dependencies.
* gnu/packages/ruby.scm (ruby-yard)[arguments]: Disable tests.
[native-inputs]: Remove.
---
gnu/packages/ruby.scm | 32 ++++++++++----------------------
1 file changed, 10 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5a41375..72cdece 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6994,35 +6994,23 @@ A modified copy of yajl is used, and included in the
package.")
(method git-fetch)
;; Tests do not pass if we build from the distributed gem.
(uri (git-reference
- (url "https://github.com/lsegal/yard")
- (commit (string-append "v" version))))
+ (url "https://github.com/lsegal/yard")
+ (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi"))))
(build-system ruby-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- ;; Delete the Gemfile to avoid errors relating to it
- (delete-file "Gemfile")
- ;; $HOME needs to be set to somewhere writeable for tests to run
- (setenv "HOME" "/tmp")
- ;; Run tests without using 'rake' to avoid dependencies.
- (invoke "rspec"))))))
- (native-inputs
- `(("ruby-rspec" ,ruby-rspec)
- ("ruby-rack" ,ruby-rack)
- ("ruby-redcloth" ,ruby-redcloth)
- ("ruby-asciidoc" ,ruby-asciidoctor)))
+ ;; Note: Tests are willfully disabled to alleviate dependency cycle
+ ;; problems.
+ `(#:tests? #f))
(synopsis "Documentation generation tool for Ruby")
- (description
- "YARD is a documentation generation tool for the Ruby programming
-language. It enables the user to generate consistent, usable documentation
-that can be exported to a number of formats very easily, and also supports
-extending for custom Ruby constructs such as custom class level definitions.")
+ (description "YARD is a documentation generation tool for the Ruby
+programming language. It enables the user to generate consistent, usable
+documentation that can be exported to a number of formats very easily, and
+also supports extending for custom Ruby constructs such as custom class level
+definitions.")
(home-page "https://yardoc.org")
(license license:expat)))
- 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, 2020/07/11
- 02/17: gnu: ruby-yard: Disable tests.,
guix-commits <=
- 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
- 10/17: gnu: ruby-temple: Update to 0.8.2., guix-commits, 2020/07/11