mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Expect Homebrew to already be installed and in $PATH
This commit is contained in:
parent
2caa227e10
commit
c292b1aaf0
1 changed files with 3 additions and 11 deletions
|
@ -876,17 +876,9 @@ def windows_build_task(name, package=True, arch="x86_64", worker_type=None):
|
||||||
|
|
||||||
|
|
||||||
def with_homebrew(task, brewfiles):
|
def with_homebrew(task, brewfiles):
|
||||||
task = task.with_script("""
|
for brewfile in brewfiles:
|
||||||
mkdir -p "$HOME/homebrew"
|
task.with_script("time brew bundle install --no-upgrade --file=" + brewfile)
|
||||||
export PATH="$HOME/homebrew/bin:$PATH"
|
return task
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
def macos_build_task(name):
|
def macos_build_task(name):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue