khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 1 | language: go |
| 2 | go: |
| 3 | - 1.10.x |
| 4 | - 1.11.x |
| 5 | |
| 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=1.1.1 |
| 15 | - KAFKA_VERSION=2.0.1 |
| 16 | - KAFKA_VERSION=2.1.0 |
| 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 | |
| 24 | install: make install_dependencies |
| 25 | |
| 26 | script: |
| 27 | - make test |
| 28 | - make vet |
| 29 | - make errcheck |
| 30 | - if [[ "$TRAVIS_GO_VERSION" == 1.11* ]]; then make fmt; fi |
| 31 | |
| 32 | after_success: |
| 33 | - bash <(curl -s https://codecov.io/bash) |
| 34 | |
| 35 | after_script: vagrant/halt_cluster.sh |