Use the latest 1.x, 2.x, 5.x ES, build with Go 1.6 and 1.7
This commit is contained in:
parent
42e5dfaa73
commit
3a66a8f6d3
30
.travis.yml
30
.travis.yml
@ -1,27 +1,31 @@
|
|||||||
language: go
|
language: go
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- oracle-java8-set-default
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.5.4
|
- 1.6.4
|
||||||
- 1.6.3
|
- 1.7.5
|
||||||
- 1.7.1
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- GO15VENDOREXPERIMENT=1
|
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
|
||||||
matrix:
|
matrix:
|
||||||
- ES_VERSION=1.3.4
|
- ES_VERSION=1.7.5 ES_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
|
||||||
- ES_VERSION=1.4.4
|
- ES_VERSION=2.4.4 ES_URL=https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.4/elasticsearch-2.4.4.tar.gz
|
||||||
- ES_VERSION=1.5.2
|
- ES_VERSION=5.2.0 ES_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.tar.gz
|
||||||
- ES_VERSION=1.6.0
|
|
||||||
- ES_VERSION=1.7.0
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- java -version
|
||||||
|
- echo $JAVA_HOME
|
||||||
- mkdir ${HOME}/elasticsearch
|
- mkdir ${HOME}/elasticsearch
|
||||||
- wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
|
- wget $ES_URL
|
||||||
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz -C ${HOME}/elasticsearch
|
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz -C ${HOME}/elasticsearch
|
||||||
- "echo 'script.groovy.sandbox.enabled: true' >> ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
|
- "echo 'script.inline: true' >> ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
|
||||||
- ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/elasticsearch >/dev/null &
|
- ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/elasticsearch &
|
||||||
- sleep 10 # Wait for ES to start up
|
- wget --retry-connrefused http://127.0.0.1:9200/ # Wait for ES to start up
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get github.com/Masterminds/glide
|
- go get github.com/Masterminds/glide
|
||||||
|
Loading…
Reference in New Issue
Block a user