---
dist: xenial
sudo: true
language: ruby
cache: bundler
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://github.com/htacg/tidy-html5/releases/download/5.4.0/tidy-5.4.0-64bit.deb; sudo apt-get remove '^libtidy.*';  sudo dpkg -i tidy-5.4.0-64bit.deb; fi
  - gem install bundler -v '<2'
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - 2.6
  - rbx-3
  - jruby-9.2.5.0
  - ruby-head
  - jruby-head
matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head
    - rvm: rbx-3
  fast_finish: true
notifications:
  email:
    on_success: change
    on_failure: always
script:
  - bundle exec rake

---
dist: xenial
sudo: true
language: ruby
cache: bundler
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://github.com/htacg/tidy-html5/releases/download/5.4.0/tidy-5.4.0-64bit.deb; sudo apt-get remove '^libtidy.*';  sudo dpkg -i tidy-5.4.0-64bit.deb; fi
  - gem install bundler -v '<2'
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - 2.6
  - 2.7
  - rbx-3
  - jruby-9.2.12.0
  - ruby-head
  - jruby-head
matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head
    - rvm: rbx-3
  fast_finish: true
notifications:
  email:
    on_success: change
    on_failure: always
script:
  - bundle exec rake

Add Ruby 2.7 to CI and update jruby
Add Ruby 2.7 to CI and update jruby
