diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-07-09 21:44:10 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-07-11 14:26:58 -0400 |
commit | fa8e4dbf38d018006f0d8ab3eb8a56942609d1f9 (patch) | |
tree | 988714a559ba226aa061634ddc13592a1fbdd598 /gnu/packages | |
parent | 7af929249da3687b30337b4e30a1596e6dc317dc (diff) | |
download | guix-fa8e4dbf38d018006f0d8ab3eb8a56942609d1f9.tar.gz |
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/ruby.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 685ee0489a..18da48a948 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) |