language: ruby
cache: bundler
services:
  - mysql
env:
  global:
    - CC_TEST_REPORTER_ID=d69084d39be74e8dafe9a689102b19130a21abe963dce8aa6146078098c9b242
before_install:
  - nvm install 'lts/*'
  - nvm use 'lts/*'
  - npm i -g yarn
install:
  - bundle config set --local deployment 'true'
  - bundle install --jobs=3 --retry=3
  - yarn
before_script:
  - cp config/application.yml.example config/application.yml
  - cp config/database.yml.example config/database.yml
  - bundle exec rake db:reset
  - 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:
  - bundle exec rspec
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
  only:
    - master
notifications:
  email:
    on_success: never
    on_failure: change
    recipients: programmers@admin.umass.edu

dist: focal
language: ruby
cache: bundler
services:
  - mysql
env:
  global:
    - CC_TEST_REPORTER_ID=d69084d39be74e8dafe9a689102b19130a21abe963dce8aa6146078098c9b242
before_install:
  - nvm install 'lts/*'
  - nvm use 'lts/*'
  - npm i -g yarn
install:
  - bundle config set --local deployment 'true'
  - bundle install --jobs=3 --retry=3
  - yarn
before_script:
  - cp config/application.yml.example config/application.yml
  - cp config/database.yml.example config/database.yml
  - bundle exec rake db:reset
  - 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:
  - bundle exec rspec
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
  only:
    - master
notifications:
  email:
    on_success: never
    on_failure: change
    recipients: programmers@admin.umass.edu

Use newer version of Ubuntu
Use newer version of Ubuntu

Yesterday, NodeJS released the first 18.x LTS, and our app just uses
"lts/*". 18.x requires a version of glibc that isn't available on Xenial
(Travis's default).
