Permalink
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (28 sloc) 772 Bytes
language: ruby
os: osx
env: OSX=10.12
osx_image: xcode8.1
rvm: system
cache: bundler
before_install:
- export TRAVIS_COMMIT="$(git rev-parse --verify -q HEAD)"
- if [ -f ".git/shallow" ]; then
travis_retry git fetch --unshallow;
fi
- HOMEBREW_REPOSITORY="$(brew --repo)"
- sudo chown -R "$USER" "$HOMEBREW_REPOSITORY"
- git -C "$HOMEBREW_REPOSITORY" reset --hard origin/master
- brew update || brew update
- HOMEBREW_TAP_DIR="$(brew --repo "$TRAVIS_REPO_SLUG")"
- rm -rf "$HOMEBREW_TAP_DIR"
- ln -s "$PWD" "$HOMEBREW_TAP_DIR"
- export HOMEBREW_DEVELOPER="1"
- ulimit -n 1024
- sudo gem install bundler
script:
- brew style "$TRAVIS_REPO_SLUG"
- bundle exec rake
notifications:
email:
on_success: never
on_failure: always