.travis.yml

Summary

Maintainability
Test Coverage
language: ruby
rvm:
 — 2.5.3
env:
  global:
    - CC_TEST_REPORTER_ID=29c2351a3fa96cdda810da571ef220ca4e026fdcd85193d7443574ce83a61f32
addons:
  postgresql: 9.6
install:
  - gem update --system
  - gem install bundler
  - bundle install --jobs=3 --retry=3
before_script:
  - "cp ./config/database.travis.yml ./config/database.yml"
  - "cp ./config/secrets.example.yml ./config/secrets.yml"
  - RAILS_ENV=test bundle exec rails db:create
  - 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:
  - RAILS_ENV=test bundle exec rails db:migrate
  - bundle exec rspec spec
  - rubocop
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT