brew/.travis.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

language: c
cache:
directories:
- $HOME/Library/Caches/Homebrew/style
- $HOME/Library/Caches/Homebrew/tests
- $HOME/Library/Homebrew/vendor/bundle
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
compiler: clang
osx_image: xcode9.2
2016-12-03 14:45:50 +00:00
- os: linux
compiler: gcc
sudo: false
before_install:
2016-12-03 14:45:50 +00:00
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
MACOS="1";
2016-12-03 14:45:50 +00:00
HOMEBREW_REPOSITORY="$(brew --repo)";
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";
sudo ln -s "$PWD" "$HOMEBREW_REPOSITORY";
fi
- if [ "$MACOS" ]; then
travis_retry git -C Library/Taps/homebrew/homebrew-core fetch --depth=1 origin;
else
travis_retry git clone --depth=1 https://github.com/Homebrew/homebrew-core Library/Taps/homebrew/homebrew-core;
fi
- travis_retry git clone --depth=1 https://github.com/Homebrew/homebrew-test-bot Library/Taps/homebrew/homebrew-test-bot
script:
- brew test-bot
2017-04-24 16:49:05 +01:00
notifications:
slack: machomebrew:1XNF7p1JRCdBUuKaeSwsWEc1