language: ruby
cache: bundler

rvm:
  - 2.5.0

before_script:
  - cp config/database.travis.yml config/database.yml
  - bundle exec rake db:create RAILS_ENV=test
  - bundle exec rake db:migrate RAILS_ENV=test

  - 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
  - bundle exec rubocop
  - bundle exec rails_best_practices .
  - bundle exec bundle-audit check --update
  - bundle exec brakeman

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

env:
  global:
    - CC_TEST_REPORTER_ID=c79183d506a63da6a1d6f5a85e7c64717883b03e696947c64fdfde08001815fd

language: ruby
cache: bundler

rvm:
  - 2.5.1

before_script:
  - cp config/database.travis.yml config/database.yml
  - bundle exec rake db:create RAILS_ENV=test
  - bundle exec rake db:migrate RAILS_ENV=test

  - 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
  - bundle exec rubocop
  - bundle exec rails_best_practices .
  - bundle exec bundle-audit check --update
  - bundle exec brakeman

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

env:
  global:
    - CC_TEST_REPORTER_ID=c79183d506a63da6a1d6f5a85e7c64717883b03e696947c64fdfde08001815fd

Update ruby version in `Travis CI` config
Update ruby version in `Travis CI` config
