.travis.yml 579 B

123456789101112131415
  1. sudo: required
  2. language: go
  3. script: go test -race -v . ./config
  4. go:
  5. - 1.x
  6. - tip
  7. matrix:
  8. allow_failures:
  9. - go: tip
  10. services:
  11. - docker
  12. before_install:
  13. - sudo sysctl -w vm.max_map_count=262144
  14. - docker run --rm --privileged=true -p 9200:9200 -p 9300:9300 -e "bootstrap.memory_lock=true" -e "ES_JAVA_OPTS=-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:5.6.9 elasticsearch -Expack.security.enabled=false -Escript.inline=true -Escript.stored=true -Escript.file=true -Enetwork.host=_local_,_site_ -Enetwork.publish_host=_local_ >& /dev/null &
  15. - sleep 30