Skip to content

Commit a063458

Browse files
committed
Updated the Travis CI configuration
Related: elastic/elasticsearch-ruby#389
1 parent 135fd28 commit a063458

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

.travis.yml

+25-16
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,48 @@
22
# Configuration file for http://travis-ci.org/elasticsearch/elasticsearch-rails
33
# -----------------------------------------------------------------------------
44

5+
dist: trusty
6+
7+
sudo: required
8+
59
language: ruby
610

11+
services:
12+
- mongodb
13+
714
branches:
815
only:
916
- master
1017
- travis
1118

12-
rvm:
13-
- 1.9.3
14-
- 2.1
15-
- 2.2
19+
matrix:
20+
include:
21+
- rvm: 2.2.6
22+
jdk: oraclejdk8
23+
env: TEST_SUITE=unit
1624

17-
jdk:
18-
- openjdk7
25+
- rvm: 2.3.3
26+
jdk: oraclejdk8
27+
env: TEST_SUITE=unit
1928

20-
services:
21-
- mongodb
29+
- rvm: 2.3.3
30+
jdk: oraclejdk8
31+
env: TEST_SUITE=integration SERVER=start TEST_CLUSTER_LOGS=/tmp/log TEST_CLUSTER_COMMAND=/tmp/elasticsearch-1.7.5/bin/elasticsearch
2232

2333
before_install:
24-
- gem update --system
34+
- gem update --system --no-rdoc --no-ri
2535
- gem --version
26-
- gem install bundler -v 1.11.2
36+
- gem install bundler -v 1.14.3 --no-rdoc --no-ri
37+
- bundle version
38+
- curl -sS https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz | tar xz -C /tmp
2739

28-
before_script:
29-
- ls -la /usr/share/elasticsearch/bin/elasticsearch
30-
- elasticsearch -v
40+
install:
41+
- bundle install
3142
- rake bundle:clean
3243
- rake bundle:install
3344

3445
script:
35-
- SERVER=launch TEST_CLUSTER_COMMAND=/usr/share/elasticsearch/bin/elasticsearch TEST_CLUSTER_PARAMS='-Des.default.path.conf=/etc/elasticsearch/ -Des.default.path.logs==/var/log/elasticsearch/' bundle exec rake test:all
46+
- rake test:$TEST_SUITE
3647

3748
notifications:
3849
disable: true
39-
40-
sudo: false

0 commit comments

Comments
 (0)