language: ruby
rvm:
 - 2.6.5
env:
  global:
    - CC_TEST_REPORTER_ID=1e0c6dba9930e839038860b6d73301226c821937f57ed35d06fc0e4b7bddf5f6
services:
  - redis-server
  - postgresql
cache: bundler
before_install:
  - gem install bundler -v 1.15.2
before_script:
  - psql -c 'create database glowfic_test;' -U postgres
  - 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:schema:load --trace
  - bundle exec rspec spec
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
  only:
  - master

dist: bionic
language: ruby
rvm:
 - 2.6.5
env:
  global:
    - CC_TEST_REPORTER_ID=1e0c6dba9930e839038860b6d73301226c821937f57ed35d06fc0e4b7bddf5f6
services:
  - redis-server
  - postgresql
cache: bundler
before_install:
  - gem install bundler -v 1.15.2
before_script:
  - psql -c 'create database glowfic_test;' -U postgres
  - 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:schema:load --trace
  - bundle exec rspec spec
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
  only:
  - master

Upgrade Travis to use Ubuntu Bionic (18.04) images
Upgrade Travis to use Ubuntu Bionic (18.04) images
