Skip to content

Commit 594f194

Browse files
authored
Merge pull request elastic#478 from ShaneHarvey/test-elastic-5-java-8
Travis: install Java 8 and test against Elasticsearch 5.0.0
2 parents 2bc407e + 91787fc commit 594f194

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.travis.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
language: python
22

3-
sudo: false
4-
53
python:
64
- "2.6"
75
- "2.7"
86
- "3.3"
97
- "3.4"
108
- "3.5"
119

12-
jdk:
13-
- "oraclejdk8"
10+
addons:
11+
apt:
12+
packages:
13+
- oracle-java8-installer
1414

1515
env:
1616
# different connection classes to test
17-
- TEST_ES_CONNECTION=Urllib3HttpConnection
18-
- TEST_ES_CONNECTION=RequestsHttpConnection
17+
- TEST_ES_CONNECTION=Urllib3HttpConnection ES_VERSION=5.0.0
18+
- TEST_ES_CONNECTION=RequestsHttpConnection ES_VERSION=5.0.0
19+
20+
before_install:
21+
- sudo update-java-alternatives -s java-8-oracle
22+
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre
23+
- java -version
1924

2025
install:
21-
- wget -O /tmp/es-snap.zip "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.elasticsearch.distribution.zip&a=elasticsearch&e=zip&v=5.0.0-SNAPSHOT"
26+
- curl -L -o /tmp/es-snap.zip https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.zip
2227
- unzip /tmp/es-snap.zip -d /tmp/
23-
- mv /tmp/elasticsearch-5.0.0-SNAPSHOT /tmp/elasticsearch
24-
- /tmp/elasticsearch/bin/elasticsearch -E script.inline=true -E path.repo=/tmp -E repositories.url.allowed_urls='http://*' -E node.attr.testattr=test
28+
- /tmp/elasticsearch-*/bin/elasticsearch -E script.inline=true -E path.repo=/tmp -E repositories.url.allowed_urls='http://*' -E node.attr.testattr=test -d
2529
- git clone https://github.com/elastic/elasticsearch.git ../elasticsearch
2630
- pip install .
2731

0 commit comments

Comments
 (0)