mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
7af929249d
commit
fa8e4dbf38
1 changed files with 13 additions and 1 deletions
|
@ -6688,14 +6688,26 @@ (define-public ruby-cucumber
|
|||
"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)
|
||||
|
|
Loading…
Reference in a new issue