2016-04-12 18:42:25 +08:00
|
|
|
language: ruby
|
2017-05-07 17:28:39 +01:00
|
|
|
cache:
|
|
|
|
|
directories:
|
|
|
|
|
- $HOME/.gem/ruby
|
2017-05-28 16:59:53 +01:00
|
|
|
- $HOME/Library/Caches/Homebrew/style
|
|
|
|
|
- $HOME/Library/Caches/Homebrew/tests
|
2017-08-05 17:09:32 +01:00
|
|
|
branches:
|
|
|
|
|
only:
|
|
|
|
|
- master
|
2016-12-03 14:45:50 +00:00
|
|
|
matrix:
|
2017-07-30 17:00:28 +01:00
|
|
|
fast_finish: true
|
2016-12-03 14:45:50 +00:00
|
|
|
include:
|
|
|
|
|
- os: osx
|
2017-04-22 15:44:47 +01:00
|
|
|
osx_image: xcode8.3
|
2016-12-03 14:45:50 +00:00
|
|
|
rvm: system
|
|
|
|
|
- os: linux
|
2017-05-08 08:38:25 +01:00
|
|
|
sudo: false
|
2017-09-21 14:27:17 +01:00
|
|
|
rvm: 2.3.3
|
2016-07-27 21:46:06 -06:00
|
|
|
|
2015-09-17 17:43:40 +01:00
|
|
|
before_install:
|
2017-05-30 09:51:06 +01:00
|
|
|
- export HOMEBREW_NO_AUTO_UPDATE=1
|
2016-07-27 21:46:06 -06:00
|
|
|
- export HOMEBREW_DEVELOPER=1
|
2016-12-03 14:45:50 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
|
2017-09-06 18:01:08 +01:00
|
|
|
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)";
|
2017-04-17 14:09:00 +01:00
|
|
|
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";
|
2016-12-04 14:14:11 +00:00
|
|
|
sudo ln -s "$PWD" "$HOMEBREW_REPOSITORY";
|
2016-12-03 14:45:50 +00:00
|
|
|
else
|
2017-09-06 18:01:08 +01:00
|
|
|
umask 022;
|
|
|
|
|
git clone --depth=1 https://github.com/Homebrew/homebrew-test-bot Library/Taps/homebrew/homebrew-test-bot;
|
2017-05-30 09:51:06 +01:00
|
|
|
git fetch --unshallow;
|
2016-12-03 14:45:50 +00:00
|
|
|
export PATH="$PWD/bin:$PATH";
|
2017-06-17 09:08:23 +01:00
|
|
|
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
|
2015-11-18 15:59:08 +00:00
|
|
|
|
2015-09-17 17:43:40 +01:00
|
|
|
script:
|
|
|
|
|
- brew test-bot
|
2017-04-24 16:49:05 +01:00
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
|
slack: machomebrew:1XNF7p1JRCdBUuKaeSwsWEc1
|