forked from elasticsearch-dump/elasticsearch-dump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 1.39 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
# lock distribution
dist: trusty
sudo: true
language: node_js
node_js:
- "10"
branches:
only:
- master
jdk:
oraclejdk9
script:
# switch to jdk 9
- jdk_switcher use oraclejdk9
- npm run test
env:
matrix:
- "ES_VERSION=1.5.0 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
- "ES_VERSION=2.3.4 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
- "ES_VERSION=5.6.4 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
- "ES_VERSION=6.0.0 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
- "ES_VERSION=7.0.0 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz ES_FLAGS=-Ediscovery.type=single-node"
before_install:
## ES has different download locations for each version, so we'll download them both and then just use the one we want
- curl -Lo elasticsearch.tar.gz ${ES_DOWNLOAD_URL}
## Now, use the ENV to choose the version
- tar -xzf elasticsearch.tar.gz
- export ES_JAVA_OPTS="-Xms512m -Xmx512m"
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch ${ES_FLAGS} &
# ES needs some time to start
- wget -q --waitretry=1 --retry-connrefused -T 240 -O - http://127.0.0.1:9200