Abhilash S.L | 3b49463 | 2019-07-16 15:51:09 +0530 | [diff] [blame] | 1 | dist: xenial |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 2 | language: go |
| 3 | go: |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 4 | - 1.11.x |
Abhilash S.L | 3b49463 | 2019-07-16 15:51:09 +0530 | [diff] [blame] | 5 | - 1.12.x |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 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: |
Abhilash S.L | 3b49463 | 2019-07-16 15:51:09 +0530 | [diff] [blame] | 15 | - 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 |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 18 | |
| 19 | before_install: |
| 20 | - export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR} |
| 21 | - vagrant/install_cluster.sh |
| 22 | - vagrant/boot_cluster.sh |
| 23 | - vagrant/create_topics.sh |
Abhilash S.L | 3b49463 | 2019-07-16 15:51:09 +0530 | [diff] [blame] | 24 | - vagrant/run_java_producer.sh |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 25 | |
| 26 | install: make install_dependencies |
| 27 | |
| 28 | script: |
| 29 | - make test |
| 30 | - make vet |
| 31 | - make errcheck |
Abhilash S.L | 3b49463 | 2019-07-16 15:51:09 +0530 | [diff] [blame] | 32 | - if [[ "$TRAVIS_GO_VERSION" == 1.12* ]]; then make fmt; fi |
William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 33 | |
| 34 | after_success: |
| 35 | - bash <(curl -s https://codecov.io/bash) |
| 36 | |
| 37 | after_script: vagrant/halt_cluster.sh |