-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix CI on 0-10-stable #2181
Fix CI on 0-10-stable #2181
Conversation
.travis.yml
Outdated
- { rvm: jruby-head, env: RAILS_VERSION=master } | ||
- { rvm: 2.1, env: RAILS_VERSION=5.0 } | ||
- { rvm: jruby-9.1.5.0, env: RAILS_VERSION=5.0 } | ||
- { rvm: jruby-head, env: RAILS_VERSION=5.0 } |
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.
this is just for readability
Gemfile
Outdated
gem 'railties', gem_version | ||
gem 'activesupport', gem_version | ||
gem 'activemodel', gem_version | ||
gem 'actionpack', gem_version | ||
gem 'activerecord', gem_version, group: :test | ||
end | ||
|
||
if RUBY_VERSION < '2.1' | ||
gem 'nokogiri', '< 1.7' | ||
end |
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.
✂️ we don't test against lower than ruby 2.1
Gemfile
Outdated
@@ -47,7 +53,7 @@ group :test do | |||
gem 'codeclimate-test-reporter', require: false | |||
gem 'm', '~> 1.5' | |||
gem 'pry', '~> 0.10' | |||
gem 'pry-byebug', '~> 3.4', platform: :ruby | |||
gem 'pry-byebug', '>= 3.4', platform: :ruby |
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.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
byebug-9.1.0 requires ruby version >= 2.2.0, which is incompatible with the
current version, ruby 2.1.5p273
054f2ed
to
9c63464
Compare
``` Resolving dependencies... byebug-9.1.0 requires ruby version >= 2.2.0, which is incompatible with the current version, ruby 2.1.10p492 ```
Update appveyor Ruby to 2.3 to work around: ``` Gem::InstallError: nokogiri requires Ruby version < 2.5, >= 2.2. An error occurred while installing nokogiri (1.8.0), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.8.0'` succeeds before bundling. ``` and not 2.4 since: https://ci.appveyor.com/project/bf4/active-model-serializers/build/1.0.1052-fix_ci/job/0q3itabsnvnxr83u ``` nokogiri-1.6.8.1-x86-mingw32 requires ruby version < 2.4, which is incompatible with the current version, ruby 2.4.1p111 ```
(For Rails5) In Rails5, checking for Rails::Railtie is better
rails-42d09f6b49da/railties/lib/rails/application.rb ```ruby def secret_key_base if Rails.env.test? || Rails.env.development? Digest::MD5.hexdigest self.class.name ```
jruby/activerecord-jdbc-adapter#708 ``` uninitialized constant ActiveRecord::ConnectionAdapters::Column::Format ``` see https://travis-ci.org/rails-api/active_model_serializers/jobs/277112008
LGTM! |
Purpose
Fix CI
I'll accept PRs into the fix_ci branch if anyone wants to help
Changes
A bunch because it's been broken for a while.
Each change is isolated in a commit, though, so should be easy enough to follow
Caveats
Related GitHub issues
Additional helpful information
e.g. in
#2179