File tree 9 files changed +175
-97
lines changed
9 files changed +175
-97
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : master
1
+ name : Ruby 2.4
2
2
on :
3
3
push :
4
4
branches :
5
5
- master
6
- - 6.x
7
6
pull_request :
8
7
branches :
9
8
- master
10
- - 6.x
11
9
jobs :
12
- test-master :
10
+ tests :
13
11
env :
14
12
TEST_ES_SERVER : http://localhost:9200
13
+ RAILS_VERSIONS : ' 5.0'
15
14
strategy :
16
15
fail-fast : false
17
- matrix :
18
- ruby : [ 2.5, 2.6, 2.7, jruby ]
19
16
runs-on : ubuntu-latest
20
17
steps :
21
18
- uses : actions/checkout@v2
@@ -27,10 +24,10 @@ jobs:
27
24
sudo sysctl -w vm.max_map_count=262144
28
25
- uses : elastic/elastic-github-actions/elasticsearch@master
29
26
with :
30
- stack-version : 7.8 .0
27
+ stack-version : 7.9 .0
31
28
- uses : ruby/setup-ruby@v1
32
29
with :
33
- ruby-version : ${{ matrix.ruby }}
30
+ ruby-version : 2.4
34
31
- name : Bundle
35
32
run : |
36
33
sudo apt-get install libsqlite3-dev
Original file line number Diff line number Diff line change
1
+ name : Ruby 2.5
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+ jobs :
10
+ tests :
11
+ env :
12
+ TEST_ES_SERVER : http://localhost:9200
13
+ RAILS_VERSIONS : ' 5.0,6.0'
14
+ strategy :
15
+ fail-fast : false
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Increase system limits
20
+ run : |
21
+ sudo swapoff -a
22
+ sudo sysctl -w vm.swappiness=1
23
+ sudo sysctl -w fs.file-max=262144
24
+ sudo sysctl -w vm.max_map_count=262144
25
+ - uses : elastic/elastic-github-actions/elasticsearch@master
26
+ with :
27
+ stack-version : 7.9.0
28
+ - uses : ruby/setup-ruby@v1
29
+ with :
30
+ ruby-version : 2.5
31
+ - name : Bundle
32
+ run : |
33
+ sudo apt-get install libsqlite3-dev
34
+ gem install bundler
35
+ bundle install
36
+ bundle exec rake bundle:clean
37
+ bundle exec rake bundle:install
38
+ - name : Test
39
+ run : bundle exec rake test:all
40
+
Original file line number Diff line number Diff line change
1
+ name : Ruby 2.6
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+ jobs :
10
+ tests :
11
+ env :
12
+ TEST_ES_SERVER : http://localhost:9200
13
+ RAILS_VERSIONS : ' 5.0,6.0'
14
+ strategy :
15
+ fail-fast : false
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Increase system limits
20
+ run : |
21
+ sudo swapoff -a
22
+ sudo sysctl -w vm.swappiness=1
23
+ sudo sysctl -w fs.file-max=262144
24
+ sudo sysctl -w vm.max_map_count=262144
25
+ - uses : elastic/elastic-github-actions/elasticsearch@master
26
+ with :
27
+ stack-version : 7.9.0
28
+ - uses : ruby/setup-ruby@v1
29
+ with :
30
+ ruby-version : 2.6
31
+ - name : Bundle
32
+ run : |
33
+ sudo apt-get install libsqlite3-dev
34
+ gem install bundler
35
+ bundle install
36
+ bundle exec rake bundle:clean
37
+ bundle exec rake bundle:install
38
+ - name : Test
39
+ run : bundle exec rake test:all
40
+
Original file line number Diff line number Diff line change
1
+ name : Ruby 2.7
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+ jobs :
10
+ tests :
11
+ env :
12
+ TEST_ES_SERVER : http://localhost:9200
13
+ RAILS_VERSIONS : ' 5.0,6.0'
14
+ strategy :
15
+ fail-fast : false
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Increase system limits
20
+ run : |
21
+ sudo swapoff -a
22
+ sudo sysctl -w vm.swappiness=1
23
+ sudo sysctl -w fs.file-max=262144
24
+ sudo sysctl -w vm.max_map_count=262144
25
+ - uses : elastic/elastic-github-actions/elasticsearch@master
26
+ with :
27
+ stack-version : 7.9.0
28
+ - uses : ruby/setup-ruby@v1
29
+ with :
30
+ ruby-version : 2.7
31
+ - name : Bundle
32
+ run : |
33
+ sudo apt-get install libsqlite3-dev
34
+ gem install bundler
35
+ bundle install
36
+ bundle exec rake bundle:clean
37
+ bundle exec rake bundle:install
38
+ - name : Test
39
+ run : bundle exec rake test:all
40
+
Original file line number Diff line number Diff line change
1
+ name : JRuby
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+ jobs :
10
+ tests :
11
+ env :
12
+ TEST_ES_SERVER : http://localhost:9200
13
+ RAILS_VERSIONS : ' 5.0'
14
+ strategy :
15
+ fail-fast : false
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Increase system limits
20
+ run : |
21
+ sudo swapoff -a
22
+ sudo sysctl -w vm.swappiness=1
23
+ sudo sysctl -w fs.file-max=262144
24
+ sudo sysctl -w vm.max_map_count=262144
25
+ - uses : elastic/elastic-github-actions/elasticsearch@master
26
+ with :
27
+ stack-version : 7.9.0
28
+ - uses : ruby/setup-ruby@v1
29
+ with :
30
+ ruby-version : jruby-9.2
31
+ - name : Bundle
32
+ run : |
33
+ sudo apt-get install libsqlite3-dev
34
+ gem install bundler
35
+ bundle install
36
+ bundle exec rake bundle:clean
37
+ bundle exec rake bundle:install
38
+ - name : Test
39
+ run : bundle exec rake test:all
40
+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Elasticsearch
2
2
3
- [ ![ Build Status] ( https://travis-ci.org/elastic/elasticsearch-rails.svg?branch=master )] ( https://travis-ci.org/elastic/elasticsearch-rails ) [ ![ Code Climate] ( https://codeclimate.com/github/elastic/elasticsearch-rails/badges/gpa.svg )] ( https://codeclimate.com/github/elastic/elasticsearch-rails )
3
+ [ ![ Ruby 2.7] ( https://github.com/elastic/elasticsearch-rails/workflows/Ruby%202.7/badge.svg )] ( https://github.com/elastic/elasticsearch-rails/actions )
4
+ [ ![ Ruby 2.6] ( https://github.com/elastic/elasticsearch-rails/workflows/Ruby%202.6/badge.svg )] ( https://github.com/elastic/elasticsearch-rails/actions )
5
+ [ ![ Ruby 2.5] ( https://github.com/elastic/elasticsearch-rails/workflows/Ruby%202.5/badge.svg )] ( https://github.com/elastic/elasticsearch-rails/actions )
6
+ [ ![ Ruby 2.4] ( https://github.com/elastic/elasticsearch-rails/workflows/Ruby%202.4/badge.svg )] ( https://github.com/elastic/elasticsearch-rails/actions )
7
+ [ ![ JRuby] ( https://github.com/elastic/elasticsearch-rails/workflows/JRuby/badge.svg )] ( https://github.com/elastic/elasticsearch-rails/actions )
8
+ [ ![ Code Climate] ( https://codeclimate.com/github/elastic/elasticsearch-rails/badges/gpa.svg )] ( https://codeclimate.com/github/elastic/elasticsearch-rails )
4
9
5
10
This repository contains various Ruby and Rails integrations for [ Elasticsearch] ( http://elasticsearch.org ) :
6
11
Original file line number Diff line number Diff line change @@ -29,13 +29,14 @@ namespace :bundle do
29
29
desc 'Install dependencies for all the Gemfiles in /gemfiles. Optionally define env variable RAILS_VERSIONS. E.g. RAILS_VERSIONS=3.0,5.0'
30
30
task :install do
31
31
unless defined? ( JRUBY_VERSION )
32
- puts '-' * 80
32
+ puts '-' * 80
33
33
gemfiles = ENV [ 'RAILS_VERSIONS' ] ? ENV [ 'RAILS_VERSIONS' ] . split ( ',' ) . map { |v | "#{ v } .gemfile" } : GEMFILES
34
34
gemfiles . each do |gemfile |
35
+ puts "GEMFILE: #{ gemfile } "
35
36
Bundler . with_clean_env do
36
37
sh "bundle install --gemfile #{ File . expand_path ( '../gemfiles/' +gemfile , __FILE__ ) } "
37
38
end
38
- puts '-' * 80
39
+ puts '-' * 80
39
40
end
40
41
end
41
42
end
@@ -50,6 +51,7 @@ namespace :test do
50
51
gemfiles = ENV [ 'RAILS_VERSIONS' ] ? ENV [ 'RAILS_VERSIONS' ] . split ( ',' ) . map { |v | "#{ v } .gemfile" } : GEMFILES
51
52
puts '-' * 80
52
53
gemfiles . each do |gemfile |
54
+ puts "GEMFILE: #{ gemfile } "
53
55
sh "BUNDLE_GEMFILE='#{ File . expand_path ( "../gemfiles/#{ gemfile } " , __FILE__ ) } ' " +
54
56
" bundle exec rspec"
55
57
puts '-' * 80
You can’t perform that action at this time.
0 commit comments