rutie 0.6.0-rc.1

The tie between Ruby and Rust.
language: rust

os:
- linux
- osx

rust:
  - stable
  - beta

cache:
  bundler: true
  directories:
    - /home/travis/.cargo

before_cache:
  - rm -rf /home/travis/.cargo/registry

before_install:
- . scripts/travis_ci/install_ruby
- ruby --version
- ruby -e 'require "pp"; pp RbConfig::CONFIG'
- rustc -Vv
- cargo -Vv

matrix:
  allow_failures:
    - rust: beta
    - rust: nightly
    - env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.6.0
    - os: windows
      rust: stable
      env: BUILD_RUBY_VERSION=2.6.0
    - os: windows
      rust: stable
      env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.6.0
  include:
    - os: linux
      rust: stable
      env: RUBY_THREADING=true BUILD_RUBY_VERSION=2.6.0
      script:
        - |
          cd examples/rutie_ruby_gvl_example
          gem uninstall bundler -ax
          gem install bundler -v 1.17.3
          bundle install
          bundle exec rake
    - os: linux
      rust: stable
      env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.6.0
    - os: osx
      rust: stable
      env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.6.0
    - os: windows
      rust: stable
      env: BUILD_RUBY_VERSION=2.6.0
    - os: windows
      rust: stable
      env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.6.0

before_script:
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH

script:
- |
  cargo build -vv &&
  cargo test -vv

after_script:
- cat target/debug/build/rutie-*/output
- cat target/debug/build/rutie-*/stderr

env:
  global:
    - RUST_BACKTRACE=full
    - CI_STDERR_LOG=true
  matrix:
    - BUILD_RUBY_VERSION: 2.4.5
    - BUILD_RUBY_VERSION: 2.5.3
    - BUILD_RUBY_VERSION: 2.6.0