language: ruby sudo: false services: - docker env: global: - CC_TEST_REPORTER_ID=9f7f740ac1b6e264e1189fa07a6687a87bcdb9f3c0f4199d4344ab3b538e187e - KAFKA_HEAP_OPTS="-Xmx512m -Xms512m" rvm: - 2.4 - 2.5 - 2.6 - 2.7.1 - jruby-9.2.9.0 - jruby-9.2.10.0 - jruby-9.2.11.1 before_install: - gem update --system - | r_eng="$(ruby -e 'STDOUT.write RUBY_ENGINE')"; if [ "$r_eng" == "jruby" ]; then sudo apt-get update && \ sudo apt-get install -y git && \ sudo apt-get install -y libpthread-stubs0-dev && \ sudo apt-get install -y build-essential && \ sudo apt-get install -y zlib1g-dev && \ sudo apt-get install -y libssl-dev && \ sudo apt-get install -y libsasl2-dev fi before_script: - docker-compose up -d - cd ext && bundle exec rake && cd .. - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build script: - bundle exec rspec --format documentation after_script: - docker-compose stop - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT