.travis.yml
---
language: ruby
rvm: 2.7.3
script:
- bundle exec $CHECK
matrix:
include:
- stage: RSpec tests
services:
- postgresql
before_script:
- cp config/database.yml.travis config/database.yml
- bundle exec rake db:create && bundle exec rake db:migrate
- 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
env:
- COVERAGE="on"
- CHECK="rspec"
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- stage: Rubocop check
env: CHECK="rubocop"