dist: focal
services:
  - mysql
language: ruby
cache: bundler
env:
  global:
    - CC_TEST_REPORTER_ID=b1b9b856c0aa49c7733aedea0b460b1c118c2ff1296db77bdcf762e6e8ff91c5
before_install:
  - yes | gem update --system --force
  - gem install bundler
  - nvm install 'lts/*'
  - nvm use 'lts/*'
install:
  - bundle install --jobs=3 --retry=3
  - yarn install
before_script:
  - 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
notifications:
  email:
    on_success: never
    on_failure: change
    recipients: programmers@admin.umass.edu

dist: focal
services:
  - mysql
language: ruby
cache: bundler
env:
  global:
    - CC_TEST_REPORTER_ID=b1b9b856c0aa49c7733aedea0b460b1c118c2ff1296db77bdcf762e6e8ff91c5
before_install:
  - yes | gem update --system --force
  - gem install bundler
  - nvm install 'lts/*'
  - nvm use 'lts/*'
install:
  - bundle config set --local deployment 'true'
  - bundle install --jobs=3 --retry=3
  - yarn install
before_script:
  - 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
notifications:
  email:
    on_success: never
    on_failure: change
    recipients: programmers@admin.umass.edu

Use 'deployment' mode (so the cache actually gets used)
Use 'deployment' mode (so the cache actually gets used)
