mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
gnu: ruby-standard: Enable test suite.
* gnu/packages/ruby.scm (ruby-standard) [arguments]: Delete #:tests? argument. Delete relax-version-requiremens phase. Add set-HOME and delete-problematic-tests phases. [propagated-inputs]: Add ruby-language-server-protocol.
This commit is contained in:
parent
c6e298ba67
commit
0198bf5a79
1 changed files with 20 additions and 9 deletions
|
@ -1816,17 +1816,28 @@ (define-public ruby-standard
|
||||||
"0q42gv7wgrc818a5hm599sy07vjq69hbijzpkpgh6jws6x7wzyh3"))))
|
"0q42gv7wgrc818a5hm599sy07vjq69hbijzpkpgh6jws6x7wzyh3"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; TODO: the tests are currently broken due to using a different Rubocop
|
`(#:phases
|
||||||
;; version.
|
|
||||||
`(#:tests? #f
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'relax-version-requiremens
|
(add-after 'unpack 'set-HOME
|
||||||
(lambda _
|
(lambda _
|
||||||
(delete-file "Gemfile")
|
;; Some tests fail otherwise.
|
||||||
(delete-file "Gemfile.lock"))))))
|
(setenv "HOME" "/tmp")))
|
||||||
(native-inputs (list ruby-gimme ruby-pry ruby-simplecov))
|
(add-after 'unpack 'delete-problematic-tests
|
||||||
(propagated-inputs (list ruby-rubocop ruby-rubocop-performance))
|
;; These tests fail for unknown reasons (see:
|
||||||
|
;; https://github.com/testdouble/standard/issues/532).
|
||||||
|
(lambda _
|
||||||
|
(for-each
|
||||||
|
delete-file
|
||||||
|
'("test/standard_test.rb"
|
||||||
|
"test/standard/cop/block_single_line_braces_test.rb")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list ruby-gimme
|
||||||
|
ruby-pry
|
||||||
|
ruby-simplecov))
|
||||||
|
(propagated-inputs
|
||||||
|
(list ruby-language-server-protocol
|
||||||
|
ruby-rubocop
|
||||||
|
ruby-rubocop-performance))
|
||||||
(synopsis "Ruby Style Guide, with linter & automatic code fixer")
|
(synopsis "Ruby Style Guide, with linter & automatic code fixer")
|
||||||
(description "Standard is a port of StandardJS. Like StandardJS, it aims
|
(description "Standard is a port of StandardJS. Like StandardJS, it aims
|
||||||
to save time in the following ways:
|
to save time in the following ways:
|
||||||
|
|
Loading…
Reference in a new issue