estepnv/leafy

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
sudo: false

language: ruby

services:
  - postgresql

addons:
  postgresql: "10"
  apt:
    packages:
    - postgresql-10
    - postgresql-client-10

rvm:
  - 2.3
  - 2.4
  - 2.5
  - 2.6
  - 2.7
  - ruby-head
  - jruby-head

matrix:
  allow_failures:
    - rvm: jruby-9.2.0.0
    - rvm: 2.2
    - rvm: ruby-head
    - rvm: jruby-head

before_install:
  - yes | gem update --system --force
  - gem install bundler

before_script:
  - 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

after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

cache: bundler

env:
  global:
    - CC_TEST_REPORTER_ID=5c94ea74238649cee4b51abbe647de62a3d63971eaeca9aa58c82b62d9a0e6a8
    - COVERAGE=1
    - PGPORT=5433