sudo: required
language: ruby
addons:
  apt:
    packages:
    - lftp
cache:
  directories:
    - bash
before_script:
  - whereis bash
  - bash --version
  - ./spec/install_bash.sh
  - bash --version
after_script:
  - cane --style-exclude 'spec/**/*.rb'
  - yard stats --list-undoc
os:
  - linux
rvm:
  - 2.2.5
  - 2.3.1
env:
  matrix:
    - INSTALL_BASH_VERSION=4.0
    - INSTALL_BASH_VERSION=4.1
    - INSTALL_BASH_VERSION=4.2
    - INSTALL_BASH_VERSION=4.3
    - INSTALL_BASH_VERSION=4.4
matrix:
  include:
    - rvm: ruby-head
      env: INSTALL_BASH_VERSION=4.3
    - rvm: ruby-head
      env: INSTALL_BASH_VERSION=4.4
    - rvm: rbx-2
      env: INSTALL_BASH_VERSION=4.3
    - rvm: rbx-2
      env: INSTALL_BASH_VERSION=4.4
    - rvm: 2.3.1
      os: osx
      env: INSTALL_BASH_VERSION=
    - rvm: 2.3.1
      env: INSTALL_BASH_VERSION=
  allow_failures:
    - os: osx
    - rvm: ruby-head
    - rvm: rbx-2
    - env: INSTALL_BASH_VERSION=4.0
    - env: INSTALL_BASH_VERSION=4.1

sudo: required
language: ruby
addons:
  apt:
    packages:
    - lftp
cache:
  directories:
    - bash
before_script:
  - whereis bash
  - bash --version
  - ./spec/install_bash.sh
  - bash --version
after_script:
  - cane --style-exclude 'spec/**/*.rb'
  - yard stats --list-undoc
os:
  - linux
rvm:
  - 2.2.5
  - 2.3.1
env:
  matrix:
    - INSTALL_BASH_VERSION=4.0
    - INSTALL_BASH_VERSION=4.1
    - INSTALL_BASH_VERSION=4.2
    - INSTALL_BASH_VERSION=4.3
    - INSTALL_BASH_VERSION=4.4
matrix:
  include:
    - rvm: ruby-head
      env: INSTALL_BASH_VERSION=
    - rvm: rbx-2
      env: INSTALL_BASH_VERSION=
    - rvm: 2.3.1
      os: osx
      env: INSTALL_BASH_VERSION=
    - rvm: 2.3.1
      env: INSTALL_BASH_VERSION=
  allow_failures:
    - os: osx
    - rvm: ruby-head
    - rvm: rbx-2
    - env: INSTALL_BASH_VERSION=4.0
    - env: INSTALL_BASH_VERSION=4.1

Test only default Bash version for Rubinius and ruby-head
Test only default Bash version for Rubinius and ruby-head
