Install gstreamer libraries for WPT runner tasks on mac.

This commit is contained in:
Josh Matthews 2019-05-13 12:29:21 -04:00
parent 1b8429f9ce
commit dd18ad29ac
3 changed files with 24 additions and 14 deletions

View file

@ -485,7 +485,10 @@ def update_wpt():
.with_max_run_time_minutes(5 * 60)
)
return (
with_homebrew(update_task, "etc/taskcluster/macos/Brewfile-wpt")
with_homebrew(update_task, [
"etc/taskcluster/macos/Brewfile-wpt",
"etc/taskcluster/macos/Brewfile-gstreamer",
])
.with_repo()
.with_curl_artifact_script(build_task, "target.tar.gz")
.with_script("""
@ -515,7 +518,8 @@ def macos_wpt():
.find_or_create("build.macos_x64_release." + CONFIG.git_sha)
)
def macos_run_task(name):
return macos_task(name).with_python2()
task = macos_task(name).with_python2()
return with_homebrew(task, ["etc/taskcluster/macos/Brewfile-gstreamer"])
wpt_chunks("macOS x64", macos_run_task, build_task, repo_dir="repo",
total_chunks=6, processes=4, chunks=[1,2,3])
@ -730,15 +734,18 @@ def windows_build_task(name, package=True, arch="x86_64"):
return task
def with_homebrew(task, brewfile):
return task.with_script("""
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"
time brew bundle install --no-upgrade --file={brewfile}
""".format(brewfile=brewfile))
""")
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):
@ -752,7 +759,10 @@ def macos_build_task(name):
.with_rustup()
)
return (
with_homebrew(build_task, "etc/taskcluster/macos/Brewfile")
with_homebrew(build_task, [
"etc/taskcluster/macos/Brewfile",
"etc/taskcluster/macos/Brewfile-gstreamer",
])
.with_script("""
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"