You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
1.0 KiB

  1. language: go
  2. addons:
  3. apt:
  4. packages:
  5. - oracle-java8-set-default
  6. go:
  7. - 1.6.4
  8. - 1.7.5
  9. env:
  10. global:
  11. - JAVA_HOME=/usr/lib/jvm/java-8-oracle
  12. matrix:
  13. - ES_VERSION=1.7.5 ES_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
  14. - 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
  15. - ES_VERSION=5.2.0 ES_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.tar.gz
  16. before_script:
  17. - java -version
  18. - echo $JAVA_HOME
  19. - mkdir ${HOME}/elasticsearch
  20. - wget $ES_URL
  21. - tar -xzf elasticsearch-${ES_VERSION}.tar.gz -C ${HOME}/elasticsearch
  22. - "echo 'script.inline: true' >> ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
  23. - ${HOME}/elasticsearch/elasticsearch-${ES_VERSION}/bin/elasticsearch &
  24. - wget --retry-connrefused http://127.0.0.1:9200/ # Wait for ES to start up
  25. install:
  26. - go get github.com/Masterminds/glide
  27. script:
  28. - make test