os:
  - linux
  - osx
sudo: false
before_install:
  - export BUNDLE_GEMFILE=$PWD/Gemfile
  - export TRAVIS_RUBY_VERSION="$(ruby -e 'puts RUBY_VERSION')-travis"
  - script/bootstrap
  - export PATH=~/bin:"$PATH"
language: go
go:
  - 1.4.2
script: script/test
install: bundle install --path "$HOME/build/$TRAVIS_REPO_SLUG/vendor/bundle" --without development --deployment --jobs=3 --retry=3
cache:
  directories:
    - vendor/bundle
notifications:
  email: false
env:
  global:
    - AMAZON_S3_BUCKET=ci-cache
    - AMAZON_ACCESS_KEY_ID=AKIAJQCVTDEWQHRPBPGQ
    - secure: "XAZv5xyNjWt7F9hG0MZhDANVJ5h/ajEZvfJOEIZRQlE3X5x6oVgI8blLh/MmlRSF0kIyLckcn6t2ccjSOvwN2hca5bwZSjIqoKbJyNe2cmkxfi2432vEOu3Ve6PT5hZWX4R5RgT+xWyMjIJcdF3gUMP7ErXl64aEncBzeW6OoXM="

os:
  - linux
  - osx
sudo: false
before_install:
  - export BUNDLE_GEMFILE=$PWD/Gemfile
  - export TRAVIS_RUBY_VERSION="$(ruby -e 'puts RUBY_VERSION')-travis"
  - script/bootstrap
  - export PATH=~/bin:"$PATH"
language: go
go:
  - 1.4.2
script: script/test
install: script/cached-bundle install --without development --deployment --jobs=3 --retry=3
notifications:
  email: false
env:
  global:
    - AMAZON_S3_BUCKET=ci-cache
    - AMAZON_ACCESS_KEY_ID=AKIAJQCVTDEWQHRPBPGQ
    - secure: "XAZv5xyNjWt7F9hG0MZhDANVJ5h/ajEZvfJOEIZRQlE3X5x6oVgI8blLh/MmlRSF0kIyLckcn6t2ccjSOvwN2hca5bwZSjIqoKbJyNe2cmkxfi2432vEOu3Ve6PT5hZWX4R5RgT+xWyMjIJcdF3gUMP7ErXl64aEncBzeW6OoXM="

Switch back to manual S3 caching strategy to support osx
Switch back to manual S3 caching strategy to support osx

Travis `cache` directive doesn't seem supported on its osx environment.
