.travis.yml
language: ruby
env:
global:
- CC_TEST_REPORTER_ID=67bd12d38e2ebb8be9df65f57a080a4fb436739c75ed859a82cd3267807d38ba
rvm:
- 2.6
- 2.5
- 2.4
addons:
postgresql: "9.6"
services:
- postgresql
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
- psql -c 'create database api_guardian_test;' -U postgres
script:
- bundle exec rails db:migrate RAILS_ENV=test
- bundle exec rspec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT