.travis.yml 855 B

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