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