blob: 4331fa140e31166302c794f33db9e964a27d2394 [file] [log] [blame]
Scott Bakerf579f132019-10-24 14:31:41 -07001dist: xenial
Scott Bakere7144bc2019-10-01 14:16:47 -07002language: go
3go:
Scott Bakere7144bc2019-10-01 14:16:47 -07004- 1.11.x
Scott Bakerf579f132019-10-24 14:31:41 -07005- 1.12.x
Scott Bakere7144bc2019-10-01 14:16:47 -07006
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:
Scott Bakerf579f132019-10-24 14:31:41 -070015 - KAFKA_VERSION=2.1.1 KAFKA_SCALA_VERSION=2.12
16 - KAFKA_VERSION=2.2.1 KAFKA_SCALA_VERSION=2.12
17 - KAFKA_VERSION=2.3.0 KAFKA_SCALA_VERSION=2.12
Scott Bakere7144bc2019-10-01 14:16:47 -070018
19before_install:
20- export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR}
21- vagrant/install_cluster.sh
22- vagrant/boot_cluster.sh
23- vagrant/create_topics.sh
Scott Bakerf579f132019-10-24 14:31:41 -070024- vagrant/run_java_producer.sh
Scott Bakere7144bc2019-10-01 14:16:47 -070025
26install: make install_dependencies
27
28script:
29- make test
30- make vet
31- make errcheck
Scott Bakerf579f132019-10-24 14:31:41 -070032- if [[ "$TRAVIS_GO_VERSION" == 1.12* ]]; then make fmt; fi
Scott Bakere7144bc2019-10-01 14:16:47 -070033
34after_success:
35- bash <(curl -s https://codecov.io/bash)
36
37after_script: vagrant/halt_cluster.sh