Skip to content

Commit 8d79b98

Browse files
authored
[CI] Update Travis matrix for 5.x branch (#806)
* [CI] Update Travis matrix * [MODEL] Mock the #to_ary method in multimodel test for Ruby 2.2
1 parent 0239bd1 commit 8d79b98

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.travis.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,28 @@ branches:
1919

2020
matrix:
2121
include:
22-
- rvm: 2.2.6
22+
include:
23+
- rvm: 2.2
24+
jdk: oraclejdk8
25+
env: TEST_SUITE=unit
26+
27+
- rvm: 2.3
2328
jdk: oraclejdk8
2429
env: TEST_SUITE=unit
2530

26-
- rvm: 2.3.3
31+
- rvm: 2.4
2732
jdk: oraclejdk8
2833
env: TEST_SUITE=unit
2934

30-
- rvm: 2.3.3
35+
- rvm: 2.5
36+
jdk: oraclejdk8
37+
env: TEST_SUITE=unit
38+
39+
# - rvm: jruby-9.1
40+
# jdk: oraclejdk8
41+
# env: TEST_SUITE=unit
42+
43+
- rvm: 2.5
3144
jdk: oraclejdk8
3245
env: TEST_SUITE=integration QUIET=y SERVER=start TEST_CLUSTER_LOGS=/tmp/log TEST_CLUSTER_COMMAND=/tmp/elasticsearch-5.3.0/bin/elasticsearch
3346

elasticsearch-model/Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ namespace :test do
3838
sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/5.0.gemfile', __FILE__)}' bundle exec rake test:run_unit"
3939
end
4040

41-
desc "Run integration tests against ActiveModel 3, 4 and 5"
41+
desc "Run integration tests against latest stable ActiveModel (5)"
4242
task :integration do
43-
sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/3.0.gemfile', __FILE__)}' bundle exec rake test:run_integration"
44-
sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/4.0.gemfile', __FILE__)}' bundle exec rake test:run_integration"
43+
#sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/3.0.gemfile', __FILE__)}' bundle exec rake test:run_integration"
44+
#sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/4.0.gemfile', __FILE__)}' bundle exec rake test:run_integration"
4545
sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/5.0.gemfile', __FILE__)}' bundle exec rake test:run_integration"
4646
end
4747

elasticsearch-model/test/unit/multimodel_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ class Elasticsearch::Model::MultimodelTest < Test::Unit::TestCase
44

55
context "Multimodel class" do
66
setup do
7-
title = stub('Foo', index_name: 'foo_index', document_type: 'foo')
8-
series = stub('Bar', index_name: 'bar_index', document_type: 'bar')
7+
title = stub('Foo', index_name: 'foo_index', document_type: 'foo', to_ary: nil)
8+
series = stub('Bar', index_name: 'bar_index', document_type: 'bar', to_ary: nil)
99
@multimodel = Elasticsearch::Model::Multimodel.new(title, series)
1010
end
1111

0 commit comments

Comments
 (0)