language: ruby

dist: xenial

before_install:
  - sudo apt-get update
  # Provides libgirepository-1.0.so.1
  - sudo apt-get install libgirepository-1.0-1
  # Provides source code for test libraries and tools to generate introspection data
  - sudo apt-get install gobject-introspection
  # Provides gir files for various libraries, needed for generating gir files
  # for test libraries
  - sudo apt-get install libgirepository1.0-dev
  # The following packages provide typelibs for various libraries
  - sudo apt-get install gir1.2-gtop-2.0
  - sudo apt-get install gir1.2-gtk-3.0
  - sudo apt-get install gir1.2-pango-1.0
  - sudo apt-get install gir1.2-secret-1
  - sudo apt-get install gir1.2-gstreamer-1.0
  - sudo apt-get install gir1.2-gtksource-3.0

cache:
  bundler: true

bundler_args: --without local_development

rvm:
  - 2.4
  - 2.5
  - 2.6
  - ruby-head

matrix:
  # Do not run cucumber scenarios on JRuby
  include:
    - rvm: jruby-9.2
      script: bundle exec rake test:all
    - rvm: jruby-head
      script: bundle exec rake test:all
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head

branches:
  only:
    - master

language: ruby

dist: xenial

before_install:
  - sudo apt-get update
  # Provides libgirepository-1.0.so.1
  - sudo apt-get install libgirepository-1.0-1
  # Provides source code for test libraries and tools to generate introspection data
  - sudo apt-get install gobject-introspection
  # Provides gir files for various libraries, needed for generating gir files
  # for test libraries
  - sudo apt-get install libgirepository1.0-dev
  # The following packages provide typelibs for various libraries
  - sudo apt-get install gir1.2-gtop-2.0
  - sudo apt-get install gir1.2-gtk-3.0
  - sudo apt-get install gir1.2-pango-1.0
  - sudo apt-get install gir1.2-secret-1
  - sudo apt-get install gir1.2-gstreamer-1.0
  - sudo apt-get install gir1.2-gtksource-3.0

cache:
  bundler: true

bundler_args: --without local_development

rvm:
  - 2.4
  - 2.5
  - 2.6
  - 2.7
  - ruby-head

matrix:
  # Do not run cucumber scenarios on JRuby
  include:
    - rvm: jruby-9.2
      script: bundle exec rake test:all
    - rvm: jruby-head
      script: bundle exec rake test:all
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head

branches:
  only:
    - master

Add Ruby 2.7 to the Travis CI build matrix
Add Ruby 2.7 to the Travis CI build matrix
