mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
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.
This commit is contained in:
parent
b17a48d035
commit
65a6123951
1 changed files with 10 additions and 22 deletions
|
@ -7002,27 +7002,15 @@ (define-public ruby-yard
|
||||||
"1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi"))))
|
"1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
;; Note: Tests are willfully disabled to alleviate dependency cycle
|
||||||
(modify-phases %standard-phases
|
;; problems.
|
||||||
(replace 'check
|
`(#:tests? #f))
|
||||||
(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)))
|
|
||||||
(synopsis "Documentation generation tool for Ruby")
|
(synopsis "Documentation generation tool for Ruby")
|
||||||
(description
|
(description "YARD is a documentation generation tool for the Ruby
|
||||||
"YARD is a documentation generation tool for the Ruby programming
|
programming language. It enables the user to generate consistent, usable
|
||||||
language. It enables the user to generate consistent, usable documentation
|
documentation that can be exported to a number of formats very easily, and
|
||||||
that can be exported to a number of formats very easily, and also supports
|
also supports extending for custom Ruby constructs such as custom class level
|
||||||
extending for custom Ruby constructs such as custom class level definitions.")
|
definitions.")
|
||||||
(home-page "https://yardoc.org")
|
(home-page "https://yardoc.org")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue