Comments (6)
I was just about to post the same question.
In https://github.com/avo-hq/avo/ we want to test the package against a few ruby 2.x versions and 3.0. We are using the https://github.com/ddnexus/pagy gem and they use different versions for ruby 2.x and 3.x.
Thank you for your support!
from appraisal.
Not sure how this would work. I am on 2.7 and when I run this script it raises an error that it can't install pagy 4 on ruby <2.7 (the host's ruby).
Just as a clarification pagy 3 is for ruby <3.x and pagy 4 for ruby >=3.0.
["6.0", "6.1"].each do |rails_version|
appraise "rails-#{rails_version}-ruby-2.6" do
gem "rails", "~> #{rails_version}.0"
end
appraise "rails-#{rails_version}-ruby-2.7" do
gem "rails", "~> #{rails_version}.0"
end
appraise "rails-#{rails_version}-ruby-3.0" do
ruby "3.0"
gem "rails", "~> #{rails_version}.0"
gem "pagy", "~> 4.0"
end
end
from appraisal.
@etagwerker you can also try #176
from appraisal.
@adrianthedev you can also try #176
from appraisal.
My immediate feeling is that #176 would be the right way to do this (I'm going to look at this once I fix several bundler compatibility issues we currently have as I write this).
On projects with multiple Rubies and Appraisal, I typically do this instead: https://github.com/thoughtbot/administrate/blob/main/.circleci/config.yml (see thoughtbot/administrate#1932 for using GitHub Actions instead)
So unlike in your examples, we're running a different Ruby version per container and keep the same Appraisal per Ruby version.
from appraisal.
I'm going to close this as it's not moved along in a long time — and hopefully #176 if good enough as a solution for most cases.
from appraisal.
Related Issues (20)
- bundle install --local in test tries to contact remote HOT 2
- uninitialized constant Appraisal::DependencyList::Set on Ruby 3 HOT 5
- Error: Process completed with exit code 1. flutter ci/cd HOT 2
- CI: What comes after Travis? HOT 5
- New release for `install_if` support HOT 2
- error HOT 2
- Error: Process completed with exit code 1. HOT 1
- Appraisal loading wrong versions HOT 3
- customize_gemfiles is documented and merged to main but not released HOT 3
- Errno::ENOENT on install with Ruby 3.2 HOT 8
- Cut a new release HOT 1
- Appraisal v3 HOT 28
- Can't find executable appraisal for gem appraisal HOT 4
- `bundle check` returning exit code 1 but gems don't get installed HOT 2
- New release HOT 4
- `customize_gemfiles` not working correctly with Ruby 3.1 due to hash used for keyword arguments HOT 1
- Customise gemfiles adds 1 too many newline chars HOT 1
- Running appraisal specs with Bundler >= 2.4.0 broken HOT 6
- Hound/Rubocop Config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appraisal.