2018-01-26 16:58:08 +00:00
|
|
|
language: c
|
2017-05-07 17:28:39 +01:00
|
|
|
cache:
|
|
|
|
|
directories:
|
2017-05-28 16:59:53 +01:00
|
|
|
- $HOME/Library/Caches/Homebrew/style
|
|
|
|
|
- $HOME/Library/Caches/Homebrew/tests
|
2018-02-27 14:29:55 +00:00
|
|
|
- Library/Homebrew/vendor/bundle
|
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
|
2018-01-26 16:58:08 +00:00
|
|
|
compiler: clang
|
2018-06-09 15:24:11 +10:00
|
|
|
osx_image: xcode9.4
|
2016-12-03 14:45:50 +00:00
|
|
|
- os: linux
|
2018-01-26 16:58:08 +00:00
|
|
|
compiler: gcc
|
2017-05-08 08:38:25 +01:00
|
|
|
sudo: false
|
2016-07-27 21:46:06 -06:00
|
|
|
|
2015-09-17 17:43:40 +01:00
|
|
|
before_install:
|
2016-12-03 14:45:50 +00:00
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
|
2018-01-26 16:58:08 +00:00
|
|
|
MACOS="1";
|
2016-12-03 14:45:50 +00:00
|
|
|
HOMEBREW_REPOSITORY="$(brew --repo)";
|
2018-01-26 16:58:08 +00:00
|
|
|
sudo chown -R "$USER" "$HOMEBREW_REPOSITORY";
|
|
|
|
|
else
|
|
|
|
|
LINUX="1";
|
|
|
|
|
export PATH="$PWD/bin:$PATH";
|
|
|
|
|
fi
|
|
|
|
|
# umask 022 fixes Linux `brew tests` failures;
|
|
|
|
|
- if [ "$LINUX" ]; then
|
|
|
|
|
umask 022;
|
|
|
|
|
fi
|
|
|
|
|
# trigger vendored ruby installation
|
|
|
|
|
- brew help
|
|
|
|
|
- if [ "$MACOS" ]; then
|
2018-01-26 09:51:08 +00:00
|
|
|
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";
|
2018-01-26 16:58:08 +00:00
|
|
|
fi
|
|
|
|
|
- travis_retry git clone --depth=1 https://github.com/Homebrew/homebrew-test-bot Library/Taps/homebrew/homebrew-test-bot
|
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
|