-
-
Notifications
You must be signed in to change notification settings - Fork 913
Use Ruby 2.7 for development and CI #1310
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 2.6.5 | ||
| 2.7.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| ruby 2.6.5 | ||
| ruby 2.7.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,9 +7,10 @@ env: | |
| - DATABASE_ADAPTER=sqlite3 | ||
| - DATABASE_ADAPTER=postgresql | ||
| rvm: | ||
| - 2.6.5 | ||
| - 2.5.7 | ||
| - 2.4.9 | ||
| - 2.7.1 | ||
| - 2.6.6 | ||
| - 2.5.8 | ||
| - 2.4.10 | ||
| gemfile: | ||
| - gemfiles/rails_6_0.gemfile | ||
| - gemfiles/rails_5_2.gemfile | ||
|
|
@@ -18,14 +19,21 @@ gemfile: | |
| - gemfiles/rails_4_2.gemfile | ||
| matrix: | ||
| exclude: | ||
| - rvm: 2.6.5 | ||
| - rvm: 2.7.1 | ||
| gemfile: gemfiles/rails_4_2.gemfile | ||
| - rvm: 2.4.9 | ||
| - rvm: 2.6.6 | ||
| gemfile: gemfiles/rails_4_2.gemfile | ||
| - rvm: 2.4.10 | ||
| gemfile: gemfiles/rails_6_0.gemfile | ||
| cache: bundler | ||
| cache: | ||
| directories: | ||
| - /home/travis/.rvm/gems/ruby-2.7.1 | ||
| - /home/travis/.rvm/gems/ruby-2.6.6 | ||
| - /home/travis/.rvm/gems/ruby-2.5.8 | ||
| - /home/travis/.rvm/gems/ruby-2.4.10 | ||
| # Source: <https://docs.travis-ci.com/user/languages/ruby/#bundler-20> | ||
| before_install: | ||
| - gem update --system '2.7.8' --no-document | ||
| - gem update --system --force --no-document | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed the version dependency on this because I was getting deadlock issues when using a version of RubyGems prior to 3.1.0. |
||
| - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true | ||
| - gem install bundler -v '< 2' --no-document | ||
| install: "bundle install --jobs=3 --retry=3" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caching was not working properly before.
cache: bundlerassumes that theinstallcommand is not being overridden — if that is the case then Bundler will usevendor/bundleas the installation path. However, since we are overridinginstalland we are not providing a--pathtobundle install, Travis will install gems in a global location, which happens to be under/home/travis/.rvm/gems/ruby-<version>. Here I'm listing out all of the possible cache paths because it will change depending on which Ruby version the build is running under.