forked from toptal/chewy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (53 loc) · 1.65 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: ruby
sudo: false
services:
- mongodb
jdk:
- oraclejdk8
rvm:
- 2.2.7
- 2.3.4
- 2.4.1
env:
global:
- TEST_CLUSTER_NODES=1
matrix:
- ES_VERSION=2.4.4
- ES_VERSION=5.4.0
gemfile:
- gemfiles/rails.4.0.activerecord.gemfile
- gemfiles/rails.4.1.activerecord.gemfile
- gemfiles/rails.4.2.activerecord.gemfile
- gemfiles/rails.5.0.activerecord.gemfile
- gemfiles/rails.5.1.activerecord.gemfile
- gemfiles/rails.4.2.mongoid.5.1.gemfile
- gemfiles/rails.5.0.mongoid.6.0.gemfile
- gemfiles/rails.5.1.mongoid.6.1.gemfile
- gemfiles/sequel.4.45.gemfile
matrix:
exclude:
- rvm: 2.2.7
env: ES_VERSION=5.4.0
- rvm: 2.3.4
env: ES_VERSION=2.4.4
- gemfile: gemfiles/rails.4.0.activerecord.gemfile
env: ES_VERSION=5.4.0
- gemfile: gemfiles/rails.4.1.activerecord.gemfile
env: ES_VERSION=5.4.0
- gemfile: gemfiles/rails.4.2.mongoid.5.1.gemfile
env: ES_VERSION=5.4.0
- gemfile: gemfiles/rails.5.1.mongoid.6.0.gemfile
env: ES_VERSION=5.4.0
- rvm: 2.4.1
gemfile: gemfiles/rails.4.0.activerecord.gemfile
- rvm: 2.4.1
gemfile: gemfiles/rails.4.1.activerecord.gemfile
before_install:
- curl -s https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.4/elasticsearch-2.4.4.tar.gz | tar xz -C /tmp
- curl -s https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.tar.gz | tar xz -C /tmp
before_script:
- /tmp/elasticsearch-2.4.4/bin/plugin install delete-by-query
- TEST_CLUSTER_COMMAND=/tmp/elasticsearch-$ES_VERSION/bin/elasticsearch TEST_CLUSTER_LOGS=/tmp/log rake es:start
script:
- bundle exec rspec
- bundle exec rubocop