From c292b1aaf03e47a09983eff086d46ffc1673bec7 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 15 Nov 2019 15:41:20 +0100 Subject: [PATCH] Expect Homebrew to already be installed and in `$PATH` --- etc/taskcluster/decision_task.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py index 93a508e0c13..e2288f45366 100644 --- a/etc/taskcluster/decision_task.py +++ b/etc/taskcluster/decision_task.py @@ -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):