Expect Homebrew to already be installed and in $PATH

This commit is contained in:
Simon Sapin 2019-11-15 15:41:20 +01:00
parent 2caa227e10
commit c292b1aaf0

View file

@ -876,17 +876,9 @@ def windows_build_task(name, package=True, arch="x86_64", worker_type=None):
def with_homebrew(task, brewfiles):
task = task.with_script("""
mkdir -p "$HOME/homebrew"
export PATH="$HOME/homebrew/bin:$PATH"
which brew || curl -L https://github.com/Homebrew/brew/tarball/master \
| tar xz --strip 1 -C "$HOME/homebrew"
""")
for brewfile in brewfiles:
task = task.with_script("""
time brew bundle install --no-upgrade --file={brewfile}
""".format(brewfile=brewfile))
return task
for brewfile in brewfiles:
task.with_script("time brew bundle install --no-upgrade --file=" + brewfile)
return task
def macos_build_task(name):