2014-07-02 02:48:10 +08:00
|
|
|
language: go
|
|
|
|
|
2017-02-03 09:33:06 +08:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- oracle-java8-set-default
|
|
|
|
|
2014-07-02 02:48:10 +08:00
|
|
|
go:
|
2017-02-03 09:33:06 +08:00
|
|
|
- 1.6.4
|
|
|
|
- 1.7.5
|
2014-07-02 02:48:10 +08:00
|
|
|
|
|
|
|
env:
|
2016-07-27 03:55:16 +08:00
|
|
|
global:
|
2017-02-03 09:33:06 +08:00
|
|
|
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
|
2014-07-02 02:48:10 +08:00
|
|
|
matrix:
|
2017-02-03 09:33:06 +08:00
|
|
|
- ES_VERSION=1.7.5 ES_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
|
|
|
|
- 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=5.2.0 ES_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.tar.gz
|
2014-07-02 02:48:10 +08:00
|
|
|
|
|
|
|
before_script:
|
2017-02-03 09:33:06 +08:00
|
|
|
- java -version
|
|
|
|
- echo $JAVA_HOME
|
2014-07-02 02:48:10 +08:00
|
|
|
- mkdir ${HOME}/elasticsearch
|
2017-02-03 09:33:06 +08:00
|
|
|
- wget $ES_URL
|
2014-07-02 02:48:10 +08:00
|
|
|
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz -C ${HOME}/elasticsearch
|
2017-02-03 09:33:06 +08:00
|
|
|
- "echo 'script.inline: true' >> ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
|
|
|
|
- ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/elasticsearch &
|
|
|
|
- wget --retry-connrefused http://127.0.0.1:9200/ # Wait for ES to start up
|
2014-07-02 02:48:10 +08:00
|
|
|
|
2015-03-02 15:59:23 +08:00
|
|
|
install:
|
2016-07-27 03:55:16 +08:00
|
|
|
- go get github.com/Masterminds/glide
|
2015-03-02 15:59:23 +08:00
|
|
|
|
2014-07-02 02:48:10 +08:00
|
|
|
script:
|
|
|
|
- make test
|