Commit Graph

62 Commits

Author SHA1 Message Date
Wasif Hossain
02dcd93d22
Update travis to support Ruby 2.7 along with existing versions 2020-01-11 02:37:05 +06:00
Wasif Hossain
a6120f1691 Add Ruby 2.7 support (#2368)
* Add Ruby 2.7 support

Co-authored-by: Benjamin Fleischer <bf4@users.noreply.github.com>
2020-01-08 13:58:11 -06:00
Wasif Hossain
64c7fee7a8 Code cleanup (#2369)
* Lint travis.yml on https://config.travis-ci.com/explore

* Replace deprecated 'thread_safe' with 'concurrent-ruby' alternative

'thread_safe' gem is now deprecated and merged into 'concurrent-ruby'.
Ref: 52e5f373a9 (diff-42d5a45da331eaa07d2b315bd3c9e738)

* Fix deprecation warning for Ruby 2.7

https://bugs.ruby-lang.org/issues/15539


* Remove a TODO tag that is already resolved
2020-01-02 21:53:59 -05:00
Wasif Hossain
14eed23105
Bump Ruby versions on Travis: 2.4.9/2.5.7/2.6.5 2019-10-14 02:40:01 +06:00
Wasif Hossain
838b1737e0
Bump Ruby versions on Travis: 2.4.7/2.5.6/2.6.4
https://www.ruby-lang.org/en/news/2019/08/28/multiple-jquery-vulnerabilities-in-rdoc/
2019-09-03 06:04:17 +06:00
Wasif Hossain
8a0dad673c
Support jRuby 9.2.8.0 on Travis
https://www.jruby.org/2019/08/12/jruby-9-2-8-0.html
2019-08-24 00:19:41 +06:00
Wasif Hossain
82ad288fc7
Add support for Rails 6.0.0 on Travis 2019-08-21 22:21:31 +06:00
Wasif Hossain
95f4ead7de
Drop support for Ruby 2.4+ against Rails 4.1 from Travis
https://stackoverflow.com/questions/41504106/ruby-2-4-and-rails-4-stack-level-too-deep-systemstackerror
2019-08-05 03:18:41 +06:00
Wasif Hossain
e981ac6c48
Require jruby 9.1.x (ruby2.3) and 9.2.x (ruby2.5) to pass on Travis
9.1.x should pass against the following rails versions:
- 4.1
- 4.2
- 5.0
- 5.1
- 5.2

9.2.x should pass against the following rails versions:
- 4.2
- 5.0
- 5.1
- 5.2
- 6.0
2019-08-05 02:50:03 +06:00
Wasif Hossain
c907527721
Use openjdk instead of oraclejdk and jruby 9.1/9.2
fa66606a85
2019-08-04 23:57:33 +06:00
Wasif Hossain
6b3eb7444e
Test rails 6.0.0.rc2 on travis 2019-08-01 23:46:35 +06:00
Wasif Hossain
0f75837f9e
Keep rubygems version < 3.0 until we keep supporting ruby < 2.3 2019-04-29 11:58:08 +06:00
Wasif Hossain
ca43661ac0
Add support for Rails 6.0.0.rc1 on travis 2019-04-29 11:46:20 +06:00
Wasif Hossain
3715a101c2
Refactor travis.yml 2019-04-23 01:51:28 +06:00
Krzysztof Rybka
a7915c80c2 Exclude Ruby 2.4.2 and Rails master from matrix 2019-01-25 19:32:25 +01:00
Krzysztof Rybka
96ab640eb9 Install rubygems 2.7.8 and bundler ~> 1.17 on Travis 2019-01-25 01:39:24 +01:00
cintamani
b76aae7f8e
Update .travis.yml 2018-11-07 11:27:40 +00:00
cintamani
f608aef83c
Add ruby 2.5.3
Add the latest stable ruby version in the list of RVM to test
2018-11-07 10:47:20 +00:00
cintamani
b7bf03c127 Exclude ruby > 2.1 for Rails 5.2 build 2018-10-29 10:13:52 +00:00
cintamani
1b679d4c8c Test travis integration 2018-10-29 09:46:07 +00:00
Benjamin Fleischer
ed97e94e71 Exclude deprecated rubies 2018-10-09 15:14:40 -05:00
Geremia Taglialatela
ab517d1a2d Test against latest stable Ruby and Rails versions
Also skips Rails 4.1 tests against Ruby 2.4.2 and ruby-head,
because Rails 4.2.8 is the first version of the 4.x series that
officially	support Ruby 2.4.
2017-09-19 17:47:52 +02:00
Benjamin Fleischer
6a7d864605 Fix CI on 0-10-stable (#2181)
* Loosen pry, pry-byebug depencency

```
Resolving dependencies...
byebug-9.1.0 requires ruby version >= 2.2.0, which is
incompatible with the current version, ruby 2.1.10p492
```

* Adjust nokogiri version constraint for CI

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
```

* Include rails gem in Gemfile

(For Rails5)

In Rails5, checking for Rails::Railtie is better

* Rails5 test env requires Rails.application.class.name

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
```

* Reformat exclude matrix to be easier to read

* Simplify jruby-travis config per rails/rails

* Organize .travis.yml per rails/rails

* Allow JRuby failure on Rails 5+; try rails-5 db adapter branch

https://github.com/jruby/activerecord-jdbc-adapter/issues/708

```
uninitialized constant ActiveRecord::ConnectionAdapters::Column::Format
```

see https://travis-ci.org/rails-api/active_model_serializers/jobs/277112008
2017-09-19 05:27:02 -04:00
Benjamin Fleischer
9ccdb15610 Fix JRuby build on CI, with a suggestion from Travis CI support (#2040)
* Fix JRuby build on CI, with a suggestion from Travis CI support

per
13f30e287c
per https://twitter.com/jodosha/status/823522145745731586
2017-01-26 13:52:46 -06:00
Ryoji Yoshioka
095ad9c82c Run tests by Ruby 2.2.6 and 2.3.3 2016-12-04 00:20:24 +09:00
L. Preston Sego III
b29395b0ac This adds namespace lookup to serializer_for (#1968)
* This adds namespace lookup to serializer_for

* address rubocop issue

* address @bf4's feedback

* add docs

* update docs, add more tests

* apparently rails master doesn't have before filter

* try to address serializer cache issue between tests

* update cache for serializer lookup to include namespace in the key, and fix the tests for explicit namespace

* update docs, and use better cache key creation method

* update docs [ci skip]

* update docs [ci skip]

* add to changelog [ci skip]
2016-11-09 07:57:39 -05:00
Benjamin Fleischer
cf3cfaa924 Rails 5.0 CI 2016-07-05 17:46:14 -05:00
Benjamin Fleischer
b41df13341 Add Rails 5.0 to test matrix 2016-07-05 13:22:16 -05:00
Ben Mills
89e0a39fbb Drop support for Rails 4.0 and Ruby 2.0.0 2016-04-04 11:41:35 -06:00
Yohan Robert
9bd4c22f40 Replace -d by --debug in JRUBY_OPTS for travis
It seems that for coverage to work properly the "--debug" option is
needed when using JRuby.
2016-03-19 01:30:16 +01:00
Benjamin Fleischer
4a251e3fd0 Add -d JRUBY_OPTS for simplecov 2016-03-17 14:31:30 -05:00
Benjamin Fleischer
7c2197645d Fix how we set JRuby env vars
Always set JRUBY_OPTs, just like TravisCI
2016-03-11 09:26:13 -06:00
Benjamin Fleischer
3e63596423 Remove rbx from CI. Allowing failures is just wasting resources
Breaks too often.

Happy to re-add if someone want to take charge of keeping it green.
2016-03-08 23:01:43 -06:00
Nadav Shatz
84b87e7d92 Run all branches against JRuby on CI 2016-03-07 11:41:37 -05:00
Benjamin Fleischer
e3b9597d1a Remove warning capture; more trouble than worth 2016-01-11 23:48:40 -06:00
Benjamin Fleischer
7f9c09998a Fix JRruby at 9.0.4.0 since TravisCI is using pre1 for some reason 2015-12-27 23:02:35 -06:00
Ryunosuke SATO
8df6d8acc1 Test against Ruby 2.3.0 on Travis CI 2015-12-26 05:13:52 +09:00
Benjamin Fleischer
cca723ae42 Merge pull request #1397 from bf4/rbx_is_unreliable_in_ci
Closes #1396.  RBX just causes unnecessary CI failures
2015-12-24 12:08:31 -06:00
Benjamin Fleischer
7688d3be90 Closes #1396. RBX just causes unnecessary CI failures 2015-12-24 11:55:11 -06:00
Benjamin Fleischer
94ca0e0701 Add JRuby 9000 to CI matrix 2015-12-22 23:54:29 -06:00
Mauro George
b773f84085 Drop JRuby 1.9
Since we are no longer support Ruby 1.9 we are safe to remove this from the CI.
2015-12-22 20:23:29 -02:00
Kara Carrell
850ac3feaf drop support to Ruby 1.9.3 from build matrix 2015-12-14 14:18:06 -06:00
Kara Carrell
338868a450 Update travis build matrix to include Ruby 2.2.3 for Rails 5 2015-12-14 14:18:06 -06:00
Benjamin Fleischer
2bea7f94f3 Require CI to pass on Rails master (Rails 5) 2015-11-25 21:56:01 -06:00
John Hamelink
defd8d05c9 Fix bundler caching in travis & Appveyor
- Point gems to vendor/bundle in travis.yml
 - Point Travis cache to vendor/bundle
 - Point Appveyor cache to vendor/bundle
2015-11-24 01:53:45 +00:00
Benjamin Fleischer
14a06d96c4 Only capture stderr on Ruby 2.1 on CI
Always show warnings in tests
2015-11-09 00:35:02 -06:00
Benjamin Fleischer
9e3cf0241d Separate default rake from rake ci 2015-10-22 10:45:24 -05:00
Mauro George
c7b8c54952 Change default rake task to run test and rubocop
The rubocop only runs in the CI this way a contributor probably will see a
rubocop offense only in the CI.

Running the rubocop in the default rake task we have more chance that a offense
be get in the local machine.
2015-10-01 19:52:14 -03:00
Benjamin Fleischer
0e433d3b64 Add debug tracing for JRuby code coverage 2015-09-21 00:44:51 -05:00
Benjamin Fleischer
076cf64ff3 Disable coverage/warnings output when passing in dev 2015-09-21 00:39:56 -05:00