.travis.yml.off 980 B

1234567891011121314151617181920212223242526
  1. sudo: required
  2. language: go
  3. go:
  4. - "1.13.x"
  5. - "1.14.x"
  6. #- tip
  7. env:
  8. - GO111MODULE=on
  9. - GO111MODULE=off
  10. matrix:
  11. allow_failures:
  12. - go: tip
  13. services:
  14. - docker
  15. before_install:
  16. # Install netcat
  17. - if [[ "$TRAVIS_OS_NAME" == "linux" && ! $(which nc) ]] ; then sudo apt-get install -y netcat ; fi
  18. - sudo sysctl -w vm.max_map_count=262144
  19. - 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.16 elasticsearch -Expack.security.enabled=false -Escript.inline=true -Escript.stored=true -Escript.file=true -Enetwork.host=_local_,_site_ -Enetwork.publish_host=_local_ >& /dev/null &
  20. - go get -u github.com/fortytw2/leaktest
  21. - go get . ./aws/... ./config/... ./uritemplates/...
  22. # Wait for Elasticsearch
  23. - while ! nc -z localhost 9200; do sleep 1; done
  24. install: true
  25. script:
  26. - go test -race -deprecations -strict-decoder -v . ./aws/... ./config/... ./uritemplates/...