.travis.yml 877 B

123456789101112131415161718192021222324252627282930313233343536
  1. dist: bionic
  2. language: go
  3. go:
  4. - 1.12.x
  5. - 1.13.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.2.1 KAFKA_SCALA_VERSION=2.12
  15. - KAFKA_VERSION=2.3.0 KAFKA_SCALA_VERSION=2.12
  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. - vagrant/run_java_producer.sh
  22. before_script:
  23. - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.1
  24. script:
  25. - make test
  26. - make lint
  27. after_success:
  28. - go tool cover -func coverage.txt
  29. - bash <(curl -s https://codecov.io/bash)
  30. after_script: vagrant/halt_cluster.sh