sudo: required
dist: trusty

language: ruby
bundler_args: --jobs=3 --retry=3
cache: bundler
before_install:
  - sudo apt update
  - sudo apt install -y libapt-pkg-dev cppcheck
  - gem install --remote bundler
rvm:
  - 2.1
  - 2.2
  - ruby-head
matrix:
  allow_failures:
    - rvm: ruby-head
  fast_finish: true
notifications:
  irc:
    channels:
      - "irc.oftc.net#ruby-apt-pkg"
  email: false
script:
  - bundle exec rake

---
dist: bionic
sudo: true
language: ruby
cache: bundler
before_install:
  - sudo apt install -y libapt-pkg-dev cppcheck
  - gem install --remote bundler
rvm:
  - 2.3
  - 2.4
  - 2.5
  - 2.6
  - 2.7
  - ruby-head
matrix:
  allow_failures:
    - rvm: ruby-head
  fast_finish: true
notifications:
  irc:
    channels:
      - "irc.oftc.net#ruby-apt-pkg"
  email: false
script:
  - bundle exec rake

Fix CI and update Rubies
Fix CI and update Rubies
