From 7d493f5367dcdff8b49954a28fcb952032448b4c Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Tue, 11 Sep 2018 22:05:34 +0300 Subject: [PATCH] Fix macOS builds in travis-ci --- .travis.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6b8459ad3..b9f3f025a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -134,14 +134,20 @@ install: cp "version" $HOME/hombebrew_cache cd "$HOME/hombebrew_cache" wget https://builds.shiki.hu/homebrew/libtorrent-rasterbar.rb - wget https://builds.shiki.hu/homebrew/libtorrent-rasterbar--1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz + wget https://builds.shiki.hu/homebrew/5146d2df7e48f321511273fb9829ebdc3a6dc519f9ef36a344a343ae524c3ae6--libtorrent-rasterbar-1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz fi - # Copy custom libtorrent bottle to homebrew's cache so it can find and install it + # Copy custom libtorrent bottle to homebrew's download cache so it can find and install it # Also install our custom libtorrent formula by passing the local path to it # These 2 files are restored from Travis' cache. - cp "$HOME/hombebrew_cache/libtorrent-rasterbar--1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz" "$(brew --cache)" + cp "$HOME/hombebrew_cache/5146d2df7e48f321511273fb9829ebdc3a6dc519f9ef36a344a343ae524c3ae6--libtorrent-rasterbar-1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz" "$(brew --cache)/downloads" brew install "$HOME/hombebrew_cache/libtorrent-rasterbar.rb" + + # NOTE about the bottle name + # The part before the "--" characters is a sha256 hash of the string + # of the URL homebrew itself would use to download the bottle. + # In this case the URL is the following: + # http://127.0.0.1/libtorrent-rasterbar-1.1.9+git20180812.0bcf6cef23+patched-configure.el_capitan.bottle.tar.gz if [ "$build_system" = "cmake" ]; then brew outdated cmake || brew upgrade cmake