2014-07-02 02:48:10 +08:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2016-07-27 03:55:16 +08:00
|
|
|
- 1.5.4
|
|
|
|
- 1.6.3
|
2016-09-28 03:03:39 +08:00
|
|
|
- 1.7.1
|
2014-07-02 02:48:10 +08:00
|
|
|
|
|
|
|
env:
|
2016-07-27 03:55:16 +08:00
|
|
|
global:
|
|
|
|
- GO15VENDOREXPERIMENT=1
|
2014-07-02 02:48:10 +08:00
|
|
|
matrix:
|
2015-06-24 06:54:45 +08:00
|
|
|
- ES_VERSION=1.3.4
|
|
|
|
- ES_VERSION=1.4.4
|
|
|
|
- ES_VERSION=1.5.2
|
|
|
|
- ES_VERSION=1.6.0
|
2015-07-21 06:12:47 +08:00
|
|
|
- ES_VERSION=1.7.0
|
2014-07-02 02:48:10 +08:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- mkdir ${HOME}/elasticsearch
|
2015-06-24 06:57:44 +08:00
|
|
|
- wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
|
2014-07-02 02:48:10 +08:00
|
|
|
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz -C ${HOME}/elasticsearch
|
2015-06-24 22:21:06 +08:00
|
|
|
- "echo 'script.groovy.sandbox.enabled: true' >> ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
|
2014-07-02 02:48:10 +08:00
|
|
|
- ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/elasticsearch >/dev/null &
|
2016-07-27 03:55:16 +08:00
|
|
|
- sleep 10 # 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
|