Skip to content

Commit 080375d

Browse files
committed
[CI] Removes Travis, updates README, GitHub Actions
1 parent ffbe4ff commit 080375d

File tree

3 files changed

+18
-103
lines changed

3 files changed

+18
-103
lines changed

.github/workflows/6.x.yml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,33 @@ on:
99
jobs:
1010
test-ruby:
1111
env:
12-
TEST_ES_SERVER: http://localhost:9200
12+
TEST_ES_SERVER: http://localhost:9250
13+
PORT: 9250
1314
strategy:
1415
fail-fast: false
1516
matrix:
16-
ruby: [ 2.4, 2.5, 2.6, 2.7 ]
17+
ruby: [ 2.4, 2.5, 2.6, 2.7, jruby-9.2 ]
1718
runs-on: ubuntu-latest
1819
steps:
1920
- uses: actions/checkout@v2
20-
- uses: ruby/setup-ruby@v1
21-
with:
22-
ruby-version: ${{ matrix.ruby }}
23-
- name: Build and test with Rake
21+
- name: Increase system limits
2422
run: |
25-
sudo apt-get install libcurl4-openssl-dev
26-
ruby -v
27-
rake bundle:clean
28-
rake bundle:install
29-
rake test:unit
30-
test-jruby:
31-
strategy:
32-
fail-fast: false
33-
matrix:
34-
ruby: [ jruby-9.2 ]
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v2
23+
sudo swapoff -a
24+
sudo sysctl -w vm.swappiness=1
25+
sudo sysctl -w fs.file-max=262144
26+
sudo sysctl -w vm.max_map_count=262144
27+
- uses: elastic/elastic-github-actions/elasticsearch@master
28+
with:
29+
stack-version: 6.x-SNAPSHOT
30+
nodes: 2
3831
- uses: ruby/setup-ruby@v1
3932
with:
4033
ruby-version: ${{ matrix.ruby }}
41-
- name: Build and test with Rake
34+
- name: Build
4235
run: |
36+
sudo apt-get update
4337
sudo apt-get install libcurl4-openssl-dev
44-
ruby -v
4538
rake bundle:clean
4639
rake bundle:install
47-
rake test:unit
40+
- name: Test with Rake
41+
run: rake test:client

.travis.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Elasticsearch
22

3+
[![6.x](https://github.com/elastic/elasticsearch-ruby/workflows/6.x/badge.svg)](https://github.com/elastic/elasticsearch-ruby/actions) [![Code Climate](https://codeclimate.com/github/elastic/elasticsearch-ruby/badges/gpa.svg)](https://codeclimate.com/github/elastic/elasticsearch-ruby)
4+
35
This repository contains Ruby integrations for [Elasticsearch](https://www.elastic.co/products/elasticsearch):
46

57
* a client for connecting to an Elasticsearch cluster,
@@ -87,8 +89,6 @@ Please see their respective READMEs for information and documentation.
8789

8890
## Development
8991

90-
[![Build Status](https://travis-ci.org/elastic/elasticsearch-ruby.svg?branch=master)](https://travis-ci.org/elastic/elasticsearch-ruby) [![Code Climate](https://codeclimate.com/github/elastic/elasticsearch-ruby/badges/gpa.svg)](https://codeclimate.com/github/elastic/elasticsearch-ruby)
91-
9292
To work on the code, clone and bootstrap the project first:
9393

9494
```

0 commit comments

Comments
 (0)