goes/.travis.yml

33 lines
957 B
YAML
Raw Normal View History

2014-07-02 02:48:10 +08:00
language: go
go:
- 1.1
- 1.2
- 1.3
- 1.4.2
2014-07-02 02:48:10 +08:00
- tip
env:
matrix:
- ES_VERSION=1.0.3 GROOVY_VER=2.0.0
- ES_VERSION=1.1.2 GROOVY_VER=2.0.0
- ES_VERSION=1.2.1 GROOVY_VER=2.2.0
- ES_VERSION=1.3.4
- ES_VERSION=1.4.4
- ES_VERSION=1.5.2
- ES_VERSION=1.6.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
- "echo 'script.groovy.sandbox.enabled: true' >> ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
- 'if [[ "${ES_VERSION}" < "1.3" ]]; then ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/plugin --install elasticsearch/elasticsearch-lang-groovy/${GROOVY_VER}; fi'
2014-07-02 02:48:10 +08:00
- ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/elasticsearch >/dev/null &
2015-03-02 15:59:23 +08:00
install:
- go get gopkg.in/check.v1
2014-07-02 02:48:10 +08:00
script:
- make test