gnu: Add ruby-yard-with-tests.
* gnu/packages/ruby.scm (ruby-yard-with-tests): New variable.
This commit is contained in:
parent
65a6123951
commit
df32ab1196
1 changed files with 27 additions and 0 deletions
|
@ -7014,6 +7014,33 @@ definitions.")
|
||||||
(home-page "https://yardoc.org")
|
(home-page "https://yardoc.org")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public ruby-yard-with-tests
|
||||||
|
(package
|
||||||
|
(inherit ruby-yard)
|
||||||
|
(name "ruby-yard-with-tests")
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments ruby-yard)
|
||||||
|
((#:tests? _ #t) #t)
|
||||||
|
((#:test-target _ "default") "default")
|
||||||
|
((#:phases phases '%standard-phases)
|
||||||
|
`(modify-phases ,phases
|
||||||
|
(add-before 'check 'prepare-for-tests
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(substitute* "Rakefile"
|
||||||
|
((".*[Ss]amus.*") ""))
|
||||||
|
;; 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"))
|
||||||
|
#t))))))
|
||||||
|
(native-inputs
|
||||||
|
`(("ruby-rspec" ,ruby-rspec)
|
||||||
|
("ruby-rack" ,ruby-rack)
|
||||||
|
("ruby-redcloth" ,ruby-redcloth)
|
||||||
|
("ruby-asciidoc" ,ruby-asciidoctor)))))
|
||||||
|
|
||||||
(define-public ruby-clap
|
(define-public ruby-clap
|
||||||
(package
|
(package
|
||||||
(name "ruby-clap")
|
(name "ruby-clap")
|
||||||
|
|
Reference in a new issue