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