[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 218/223] gnu: ruby-coveralls: Propagate ruby-simpleco
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 218/223] gnu: ruby-coveralls: Propagate ruby-simplecov and enable tests. |
Date: |
Mon, 20 Mar 2023 13:29:28 -0400 |
* gnu/packages/ruby.scm (ruby-coveralls)
[arguments]: Enable tests. Add disable-problematic-tests phase. Replace
strip-version-requirements with relax-requirements.
[native-inputs]: New field.
[propagated-inputs]: Add ruby-simplecov.
---
gnu/packages/ruby.scm | 47 +++++++++++++++++++++++++++++--------------
1 file changed, 32 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index f887882da1..f8e736aecd 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -9609,23 +9609,40 @@ (define-public ruby-coveralls
(base32
"1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
(build-system ruby-build-system)
- ;; The test suite depends on ruby-vcr, which cannot be included in Guix
- ;; because of its nonfree, Hippocratic-derived license.
(arguments
- `(#:tests? #f
- #:phases (modify-phases %standard-phases
- (add-after 'extract-gemspec 'strip-version-requirements
- ;; Keeping strict version requirements can cause problems
- ;; to users of the library, such as: Gem::ConflictError:
- ;; Unable to activate coveralls-0.8.23, because
- ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
- (lambda _
- (substitute* "coveralls-ruby.gemspec"
- (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
- (string-append stripped ")\n")))
- #t)))))
+ (list #:test-target "default"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'extract-gemspec 'disable-problematic-tests
+ (lambda _
+ (substitute* "spec/coveralls/coveralls_spec.rb"
+ ;; This test fails for unknown reasons (perhaps
+ ;; networking); skip it.
+ (("it \"sends existing test results\"" all)
+ (string-append "x" all)))
+ ;; 3 simplecov tests fail, perhaps due to using a
+ ;; newer simplecov version.
+ (delete-file "spec/coveralls/simplecov_spec.rb")
+ (substitute* "coveralls-ruby.gemspec"
+ (("\"spec/coveralls/simplecov_spec.rb\".freeze,
")
+ ""))))
+ (add-after 'extract-gemspec 'relax-requirements
+ (lambda _
+ (substitute* "coveralls-ruby.gemspec"
+ (("%q<simplecov>.freeze, \\[\"~> 0.16.1\"]")
+ "%q<simplecov>.freeze")))))))
+ (native-inputs
+ (list git-minimal/pinned
+ ruby-pry
+ ruby-rspec
+ ruby-truthy
+ ruby-vcr-expat
+ ruby-webmock))
(propagated-inputs
- (list ruby-json ruby-term-ansicolor ruby-thor ruby-tins))
+ (list ruby-json
+ ruby-term-ansicolor
+ ruby-thor
+ ruby-tins
+ ruby-simplecov))
(synopsis "Ruby implementation of the Coveralls API")
(description "This package provides a Ruby implementation of the Coveralls
API.")
--
2.39.1
- [bug#62196] [PATCH 113/223] gnu: ruby-octokit: Enable tests., (continued)
- [bug#62196] [PATCH 202/223] gnu: Add ruby-rspec-block-is-expected., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 204/223] gnu: ruby-hashie: Update to 5.0.0 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 208/223] gnu: ruby-omniauth-oauth2: Update to 1.8.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 207/223] gnu: ruby-omniauth: Update to 2.1.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 215/223] gnu: Add ruby-ammeter., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 216/223] gnu: ruby-autoprefixer-rails: Update to 10.4.13.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 223/223] gnu: ruby-net-scp: Update to 4.0.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 214/223] gnu: ruby-rspec-rails: Update to 6.0.1 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 218/223] gnu: ruby-coveralls: Propagate ruby-simplecov and enable tests.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 210/223] gnu: ruby-single-cov: Update to 1.9.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 212/223] gnu: Add ruby-sassc-rails., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 213/223] gnu: Add ruby-ammeter-bootstrap., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 211/223] gnu: ruby-parallel-tests: Update to 4.2.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 219/223] gnu: Add ruby-spy., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 209/223] gnu: ruby-cuke-modeler: Update to 3.19.0 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 203/223] gnu: Add ruby-version-gem., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 205/223] gnu: Add ruby-snaky-hash., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 206/223] gnu: ruby-oauth2: Update to 2.0.9 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 217/223] gnu: Add ruby-truthy., Maxim Cournoyer, 2023/03/20