language: ruby
dist: xenial

cache:
  bundler: true
  directories:
    - "${HOME}/cache"

bundler_args: --jobs 3 --retry 5

rvm:
  - '2.5'
  - '2.6'
  - '2.7'
  - '3.0'

env:
  - COMPILER=gcc
  - COMPILER=clang

matrix:
  fast_finish: true
  allow_failures:
    - rvm: '3.0'

branches:
  only:
    - main

notifications:
  email:
    on_success: never
    on_failure: always

before_install:
  - gem install bundler
  - bundle config set --local path 'vendor/bundle'
  - bundle config set --local without 'development'
  - export CC="$(which $COMPILER)"

before_script:
  - bundle exec rake clean

script:
  - bundle exec rake compile
  - bundle exec rake test

after_success:
  - bundle exec rake benchmark

language: ruby
dist: bionic

cache:
  bundler: true
  directories:
    - "${HOME}/cache"

bundler_args: --jobs 3 --retry 5

rvm:
  - '2.5'
  - '2.6'
  - '2.7'
  - '3.0'

env:
  - COMPILER=gcc
  - COMPILER=clang

matrix:
  fast_finish: true
  allow_failures:
    - rvm: '3.0'

branches:
  only:
    - main

notifications:
  email:
    on_success: never
    on_failure: always

before_install:
  - gem install bundler
  - bundle config set --local path 'vendor/bundle'
  - bundle config set --local without 'development'
  - export CC="$(which $COMPILER)"

before_script:
  - bundle exec rake clean

script:
  - bundle exec rake compile
  - bundle exec rake test

after_success:
  - bundle exec rake benchmark

Update Travis CI to run builds on Ubuntu 18.04 (Bionic Beaver)
Update Travis CI to run builds on Ubuntu 18.04 (Bionic Beaver)

Signed-off-by: Krzysztof Wilczyński <5f1c0be89013f8fde969a8dcb2fa1d522e94ee00@linux.com>
