brew/.travis.yml

46 lines
1.4 KiB
YAML
Raw Normal View History

2016-04-12 18:42:25 +08:00
language: ruby
cache:
directories:
- $HOME/.gem/ruby
- $HOME/Library/Caches/Homebrew/style
- $HOME/Library/Caches/Homebrew/tests
branches:
only:
- master
2016-12-03 14:45:50 +00:00
matrix:
fast_finish: true
2016-12-03 14:45:50 +00:00
include:
- os: osx
osx_image: xcode8.3
2016-12-03 14:45:50 +00:00
rvm: system
- os: linux
sudo: false
rvm: 2.3.3
before_install:
- export HOMEBREW_NO_AUTO_UPDATE=1
- export HOMEBREW_DEVELOPER=1
2016-12-03 14:45:50 +00:00
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
git clone --depth=1 https://github.com/Homebrew/homebrew-test-bot Library/Taps/homebrew/homebrew-test-bot;
2016-12-03 14:45:50 +00:00
HOMEBREW_REPOSITORY="$(brew --repo)";
sudo chown -R "$USER" "$HOMEBREW_REPOSITORY/Library/Taps";
mv "$HOMEBREW_REPOSITORY/Library/Taps" "$PWD/Library";
2016-12-03 14:45:50 +00:00
sudo rm -rf "$HOMEBREW_REPOSITORY";
sudo ln -s "$PWD" "$HOMEBREW_REPOSITORY";
2016-12-03 14:45:50 +00:00
else
umask 022;
git clone --depth=1 https://github.com/Homebrew/homebrew-test-bot Library/Taps/homebrew/homebrew-test-bot;
git fetch --unshallow;
2016-12-03 14:45:50 +00:00
export PATH="$PWD/bin:$PATH";
HOMEBREW_CORE_TAP_DIR="$(brew --repo "homebrew/core")";
mkdir -p "$HOMEBREW_CORE_TAP_DIR";
HOMEBREW_TEST_BOT_TAP_DIR="$(brew --repo "homebrew/test-bot")";
ln -s "$HOMEBREW_TEST_BOT_TAP_DIR/.git" "$HOMEBREW_TEST_BOT_TAP_DIR/Formula" "$HOMEBREW_CORE_TAP_DIR";
2016-12-03 14:45:50 +00:00
fi
script:
- brew test-bot
2017-04-24 16:49:05 +01:00
notifications:
slack: machomebrew:1XNF7p1JRCdBUuKaeSwsWEc1