Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with Ruby 2.7 #524

Merged
merged 7 commits into from May 29, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 11 additions & 12 deletions .travis.yml
@@ -1,38 +1,37 @@
language: ruby
sudo: false
cache: bundler

rvm:
- 2.5.3
- 2.4.5
- 2.3.8
- 2.2.9
- 2.1.10
- 2.7
- 2.6
- 2.5
- 2.4
- 2.3
- 2.2
- 2.1
Comment on lines +5 to +11
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should pick the latest patch version, so it doesn't have to be micro-managed with every patch release.

- ruby-head
- jruby-9.2.11.1
- jruby-head

matrix:
include:
- rvm: 2.5.3
- rvm: 2.5
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want these to always run with the latest ruby? In this case, 2.7? Same for the integration tests below.

name: "Run Danger and Code Climate"
before_script:
- bundle exec danger
after_script:
- bundle exec codeclimate-test-reporter
- rvm: 2.5.3
- rvm: 2.5
name: "Integration Tests"
install:
- for dir in spec/integration/*; do BUNDLE_GEMFILE=$dir/Gemfile bundle; done
script:
- set -e ; for dir in spec/integration/*; do BUNDLE_GEMFILE=$dir/Gemfile bundle exec rspec $dir; done
- rvm: 2.6.6
dist: bionic
Comment on lines -27 to -28
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw that this was tested on bionic, but is there a specific reason why 2.6 would need to be tested on bionic and the rest not?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No specific reason.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was some reason, but I don't remember what it was 😅

- rvm: rbx-3
dist: trusty
bundler_args: --retry 0
- rvm: jruby-9.0.5.0
dist: trusty
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly part of this PR, but do you wish to continue testing Rubinius? It seems that for testing Rubinius, the only option is to use an EOL Ubuntu.

rubinius/rubinius#3819
https://docs.travis-ci.com/user/languages/ruby/#rubinius

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, wrong line, should be on the rbx-3 line, not jruby. My bad!

But yeah, do you want to keep testing rbx-3? It seems to fail anyway. We could switch it for testing with TruffleRuby instead, WDYT?

Also I'll try testing jruby 9.0 on xenial.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know what we want for Rubinius TBH. I was OK removing it a long time ago.

- rvm: jruby-head
dist: trusty
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -19,6 +19,7 @@ Any violations of this scheme are considered to be bugs.
### Changed

* [#521](https://github.com/hashie/hashie/pull/499): Do not convert keys that cannot be represented as symbols to `String` in `Mash` initialization - [@carolineartz](https://github.com/carolineartz).
* [#524](https://github.com/hashie/hashie/pull/524): Test with Ruby 2.7 - [@aried3r](https://github.com/aried3r).
* Your contribution here.

### Deprecated
Expand Down