language: ruby
sudo: false
dist: trusty
cache: bundler
rvm:
- 2.4.1
- 2.3.4
env:
- COVERAGE=0 FUNCTIONAL_SPECS=0 INTEGRATION_SPECS=0
- COVERAGE=1 FUNCTIONAL_SPECS=1 INTEGRATION_SPECS=1

language: ruby
sudo: false
dist: trusty
cache:
  bundler: true
  directories:
  - ~/.local/bin
rvm:
- 2.4.1
- 2.3.4
env:
  matrix:
  - COVERAGE=0 FUNCTIONAL_SPECS=0 INTEGRATION_SPECS=0
  - COVERAGE=1 FUNCTIONAL_SPECS=1 INTEGRATION_SPECS=1
  global:
  - PATH="$HOME/.local/bin:$PATH"
before_install:
- if ! cc-test-reporter --version; then
    mkdir -p ~/.local/bin;
    curl -sSL
         -o ~/.local/bin/cc-test-reporter
         https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64;
    chmod +x ~/.local/bin/cc-test-reporter;
  fi
- cc-test-reporter before-build
after_script:
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
    cc-test-reporter after-build --exit-code "${TRAVIS_TEST_RESULT}";
  fi

Integrate with codeclimate test reporter
Integrate with codeclimate test reporter
