.travis.yml 1000 B

1234567891011121314151617181920212223242526272829303132333435
  1. language: go
  2. go:
  3. - 1.1
  4. - 1.2
  5. - 1.3
  6. - 1.4.2
  7. - 1.4.3
  8. - 1.5
  9. - 1.5.1
  10. env:
  11. matrix:
  12. - ES_VERSION=1.0.3 GROOVY_VER=2.0.0
  13. - ES_VERSION=1.1.2 GROOVY_VER=2.0.0
  14. - ES_VERSION=1.2.1 GROOVY_VER=2.2.0
  15. - ES_VERSION=1.3.4
  16. - ES_VERSION=1.4.4
  17. - ES_VERSION=1.5.2
  18. - ES_VERSION=1.6.0
  19. - ES_VERSION=1.7.0
  20. before_script:
  21. - mkdir ${HOME}/elasticsearch
  22. - wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
  23. - tar -xzf elasticsearch-${ES_VERSION}.tar.gz -C ${HOME}/elasticsearch
  24. - "echo 'script.groovy.sandbox.enabled: true' >> ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
  25. - 'if [[ "${ES_VERSION}" < "1.3" ]]; then ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/plugin --install elasticsearch/elasticsearch-lang-groovy/${GROOVY_VER}; fi'
  26. - ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/elasticsearch >/dev/null &
  27. install:
  28. - go get gopkg.in/check.v1
  29. script:
  30. - make test