dist: bionic
language: ruby
rvm:
  - 2.6.5
env:
  global:
    - CC_TEST_REPORTER_ID=1e0c6dba9930e839038860b6d73301226c821937f57ed35d06fc0e4b7bddf5f6
services:
  - redis-server
  - postgresql
cache: bundler
before_install:
  - psql -c 'create database glowfic_test;' -U postgres
  - gem install bundler -v 1.17.3
  - echo "Using bundler:" $(bundle --version)
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
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
    - PGPORT=5433
services:
  - redis-server
  - postgresql
cache: bundler
before_install:
  - psql -c 'create database glowfic_test;' -U postgres
  - gem install bundler -v 1.17.3
  - echo "Using bundler:" $(bundle --version)
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
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
addons:
  postgresql: 11
  apt:
    packages:
      - postgresql-11
      - postgresql-client-11

Upgrade Travis postgres version to 11
Upgrade Travis postgres version to 11

This took a long time to get right, in part because I missed
that we already had an addons hash. Oops.
