language: ruby

cache:
  - bundler

bundler_args: --jobs 1 --retry 5 --without development --path vendor/bundle

rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.8
  - 2.2.4
  - 2.3.0
  - ruby-head
  - rbx-2

env:
  - COMPILER=gcc
  - COMPILER=clang

matrix:
  fast_finish: true
  allow_failures:
    - rvm: ruby-head
    - rvm: rbx-2

branches:
  only:
    - master

before_script:
  - export CC=$COMPILER
  - bundle exec rake clean clobber

script:
  - bundle exec rake test

language: ruby

cache:
  - bundler

bundler_args: --jobs 1 --retry 5 --without development --path vendor/bundle

rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.8
  - 2.2.4
  - 2.3.0
  - ruby-head
  - rbx-2

env:
  - COMPILER=gcc
  - COMPILER=clang

matrix:
  fast_finish: true
  allow_failures:
    - rvm: ruby-head
    - rvm: rbx-2

branches:
  only:
    - master

notifications:
  email:
    on_success: change
    on_failure: change

before_install:
  - gem update bundler

before_script:
  - export CC=$COMPILER
  - bundle exec rake clean clobber

script:
  - bundle exec rake test

Resolve Bundler issue by updating its version prior to installing Ruby gems.
Resolve Bundler issue by updating its version prior to installing Ruby gems.

Also, update Travis CI e-mail notifications.

Signed-off-by: Krzysztof Wilczynski <9bf091559fc98493329f7d619638c79e91ccf029@linux.com>
