sudo: false
language: ruby
install:
  - git clone https://github.com/ruby/mspec.git ../mspec
script:
  - ../mspec/bin/mspec $MSPEC_OPTS
matrix:
  include:
    - rvm: 2.5.5
      env: MSPEC_OPTS="-R2 -ff"
    - rvm: 2.4.6
      env: CHECK_LEAKS=true
    - rvm: 2.5.5
      env: CHECK_LEAKS=true
    - rvm: 2.6.2
      env: CHECK_LEAKS=true
    - env: RUBOCOP=true
      rvm: 2.4.6
      script:
        - gem install rubocop:0.61.0
        - rubocop
branches:
  only:
    - master
    - /^try/
notifications:
  email:
    on_success: change
    on_failure: change

sudo: false
language: ruby
install:
  - git clone https://github.com/ruby/mspec.git ../mspec
script:
  - CHECK_LEAKS=true ../mspec/bin/mspec
matrix:
  include:
    - name: Running each spec twice
      rvm: 2.5.5
      script:
        - CHECK_LEAKS=true ../mspec/bin/mspec -R2 -ff
    - rvm: 2.4.6
    - rvm: 2.5.5
    - rvm: 2.6.2
    - name: RuboCop Lint Checks
      rvm: 2.4.6
      script:
        - gem install rubocop:0.61.0
        - rubocop
branches:
  only:
    - master
    - /^try/
notifications:
  email:
    on_success: change
    on_failure: change

Simplify and clarify TravisCI configuration
Simplify and clarify TravisCI configuration
