This repository has been archived by the owner on Sep 19, 2019. It is now read-only.
forked from elastic/elasticsearch-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (64 loc) · 1.69 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -----------------------------------------------------------------------
# Configuration file for https://travis-ci.org/elastic/elasticsearch-ruby
# -----------------------------------------------------------------------
dist: trusty
sudo: required
language: ruby
branches:
only:
- master
- 6.x
- 5.x
- 2.x
- travis
matrix:
include:
# Unit tests
- rvm: ruby-head
jdk: oraclejdk8
env: TEST_SUITE=unit
- rvm: 2.5.0
jdk: oraclejdk8
env: TEST_SUITE=unit
- rvm: 2.4.1
jdk: oraclejdk8
env: TEST_SUITE=unit
- rvm: 2.3.4
jdk: oraclejdk8
env: TEST_SUITE=unit
- rvm: 2.2.5
jdk: oraclejdk8
env: TEST_SUITE=unit
- rvm: jruby-9.1.12.0
jdk: oraclejdk8
env: TEST_SUITE=unit
# Integration tests
- rvm: 2.5.0
jdk: oraclejdk8
env: QUIET=y TEST_SUITE=integration
allow_failures:
- rvm: ruby-head
jdk: oraclejdk8
env: TEST_SUITE=unit
before_install:
- ls $PWD
- pkill -9 -f elasticsearch || true
- gem update --system
- gem --version
- gem install bundler -v 1.16.1
- bundle version
- bundle install
- bundle exec rake setup
- bundle exec rake elasticsearch:update
- curl -sS https://snapshots.elastic.co/downloads/elasticsearch/elasticsearch-7.0.0-alpha1-SNAPSHOT.tar.gz | tar xz -C /tmp
- >
[[ -n "$TEST_SUITE" ]] && [[ "$TEST_SUITE" == "integration" ]] &&
TEST_CLUSTER_COMMAND=/tmp/elasticsearch-7.0.0-alpha1-SNAPSHOT/bin/elasticsearch
bundle exec rake -I elasticsearch-extensions/lib test:cluster:start || true
install:
- rake bundle:clean
- rake bundle:install
script:
- rake test:$TEST_SUITE
notifications:
disable: true