language: ruby
bundler_args: --binstubs
cache: bundler

rvm:
  - 3.0.1
  - 2.7.3
  - 2.6.7

services:
  - postgresql

env:
  global:
    - CC_TEST_REPORTER_ID=0a0e3e45118bc447e677d52c21d056a5471c4921d54f96ed7b2550d9fc5043ea
  jobs:
    - ACTIVE_RECORD_BRANCH="main"
    - ACTIVE_RECORD_BRANCH="6-1-stable"
    - ACTIVE_RECORD_BRANCH="6-0-stable"
    - ACTIVE_RECORD_VERSION="~> 6.1.0"
    - ACTIVE_RECORD_VERSION="~> 6.0.0"
    - ACTIVE_RECORD_VERSION="~> 5.2.0"

jobs:
  allow_failures:
    - env: ACTIVE_RECORD_BRANCH="main"
    - env: ACTIVE_RECORD_BRANCH="6-0-stable"
    - env: ACTIVE_RECORD_BRANCH="6-1-stable"
  exclude:
    - rvm: 3.0.1
      env: ACTIVE_RECORD_VERSION="~> 5.2.0"

before_script:
  - psql --version
  - psql -c 'create database pg_search_test;' -U postgres >/dev/null
  - 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: bin/rake

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

language: ruby
bundler_args: --binstubs
cache: bundler

rvm:
  - 3.0.1
  - 2.7.3
  - 2.6.7

services:
  - postgresql

env:
  jobs:
    - ACTIVE_RECORD_BRANCH="main"
    - ACTIVE_RECORD_BRANCH="6-1-stable"
    - ACTIVE_RECORD_BRANCH="6-0-stable"
    - ACTIVE_RECORD_VERSION="~> 6.1.0"
    - ACTIVE_RECORD_VERSION="~> 6.0.0"
    - ACTIVE_RECORD_VERSION="~> 5.2.0"

jobs:
  allow_failures:
    - env: ACTIVE_RECORD_BRANCH="main"
    - env: ACTIVE_RECORD_BRANCH="6-0-stable"
    - env: ACTIVE_RECORD_BRANCH="6-1-stable"
  exclude:
    - rvm: 3.0.1
      env: ACTIVE_RECORD_VERSION="~> 5.2.0"

before_script:
  - psql --version
  - psql -c 'create database pg_search_test;' -U postgres >/dev/null

script: bin/rake

Remove Code Climate reporter from CI
Remove Code Climate reporter from CI
