blob: cace313a7d152910159ff8e54025c177a6ccb45d [file] [log] [blame]
Dinesh Belwalkare63f7f92019-11-22 23:11:16 +00001dist: xenial
2language: go
3go:
Dinesh Belwalkare63f7f92019-11-22 23:11:16 +00004- 1.12.x
5- 1.13.x
6
7env:
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
18before_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
25install: make install_dependencies
26
27script:
28- make test
29- make vet
30- make errcheck
31- if [[ "$TRAVIS_GO_VERSION" == 1.13* ]]; then make fmt; fi
32
33after_success:
34- go tool cover -func coverage.txt
35- bash <(curl -s https://codecov.io/bash)
36
37after_script: vagrant/halt_cluster.sh