travis-ci: ask homebrew for its path instead of hardcoding it
The TravisCI macOS build is broken because homebrew (a macOS dependency manager) changed its internal directory structure [1]. This is a problem because we modify the Perforce dependencies in the homebrew repository before installing them. Fix it by asking homebrew for its path instead of hardcoding it. [1] https://github.com/Homebrew/brew/commit/0a09ae30f8b6117ad699b4a0439010738989c547 Signed-off-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Lars Schneider committed
Sep 21, 2016 at 10:45 UTC
f86f49bee9ba76a4fc3811748c1b4b1559c6fd4b
1 file changed
+1
-1
.travis.yml
+1
-1
@@ -51,7 +51,7 @@ before_install:
51
FORMULA=$1
52
SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
53
sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
54
- /usr/local/Library/Taps/homebrew/homebrew-binary/$FORMULA.rb
54
+ "$(brew --repository homebrew/homebrew-binary)/$FORMULA.rb"
55
}
56
brew update --quiet
57
brew tap homebrew/binary --quiet