.travis.yml 736 B

1234567891011121314151617181920212223242526272829303132333435
  1. language: go
  2. go:
  3. - 1.10.x
  4. - 1.11.x
  5. env:
  6. global:
  7. - KAFKA_PEERS=localhost:9091,localhost:9092,localhost:9093,localhost:9094,localhost:9095
  8. - TOXIPROXY_ADDR=http://localhost:8474
  9. - KAFKA_INSTALL_ROOT=/home/travis/kafka
  10. - KAFKA_HOSTNAME=localhost
  11. - DEBUG=true
  12. matrix:
  13. - KAFKA_VERSION=1.1.1
  14. - KAFKA_VERSION=2.0.1
  15. - KAFKA_VERSION=2.1.0
  16. before_install:
  17. - export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR}
  18. - vagrant/install_cluster.sh
  19. - vagrant/boot_cluster.sh
  20. - vagrant/create_topics.sh
  21. install: make install_dependencies
  22. script:
  23. - make test
  24. - make vet
  25. - make errcheck
  26. - if [[ "$TRAVIS_GO_VERSION" == 1.11* ]]; then make fmt; fi
  27. after_success:
  28. - bash <(curl -s https://codecov.io/bash)
  29. after_script: vagrant/halt_cluster.sh