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

Fix CI on 0-10-stable #2181

Merged
merged 8 commits into from
Sep 19, 2017
Merged

Fix CI on 0-10-stable #2181

merged 8 commits into from
Sep 19, 2017

Conversation

bf4
Copy link
Member

@bf4 bf4 commented Aug 29, 2017

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

.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 }
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

@bf4 bf4 mentioned this pull request Sep 17, 2017
@bf4 bf4 force-pushed the fix_ci branch 2 times, most recently from 054f2ed to 9c63464 Compare September 17, 2017 18:32
bf4 added 8 commits September 18, 2017 22:29
```
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
```
@bf4 bf4 changed the title WIP: Fix CI Fix CI on 0-10-stable Sep 19, 2017
@NullVoxPopuli
Copy link
Contributor

LGTM!

@NullVoxPopuli NullVoxPopuli merged commit 6a7d864 into 0-10-stable Sep 19, 2017
@NullVoxPopuli NullVoxPopuli deleted the fix_ci branch September 19, 2017 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants