Skip to content
Snippets Groups Projects
.travis.yml 789 B
Newer Older
Xu Cheng's avatar
Xu Cheng committed
language: ruby
cache:
  directories:
    - $HOME/.gem/ruby
    - Library/Homebrew/vendor/bundle
Mike McQuaid's avatar
Mike McQuaid committed
    # For parallel_rspec
    - Library/Homebrew/tmp

matrix:
  include:
    - os: osx
      osx_image: xcode8.3
      rvm: system
    - os: linux
Mike McQuaid's avatar
Mike McQuaid committed
      sudo: false
before_install:
  - export HOMEBREW_DEVELOPER=1
  - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
      HOMEBREW_REPOSITORY="$(brew --repo)";
Mike McQuaid's avatar
Mike McQuaid committed
      sudo chown -R "$USER" "$HOMEBREW_REPOSITORY/Library/Taps";
      mv "$HOMEBREW_REPOSITORY/Library/Taps" "$PWD/Library";
      sudo rm -rf "$HOMEBREW_REPOSITORY";
      sudo ln -s "$PWD" "$HOMEBREW_REPOSITORY";
    else
      export PATH="$PWD/bin:$PATH";
      umask 022;
    fi
script:
  - brew test-bot

notifications:
  slack: machomebrew:1XNF7p1JRCdBUuKaeSwsWEc1