[fenix] Bug 1622339 - Move android-sdk installation into a toolchain task (https://github.com/mozilla-mobile/fenix/pull/9394)
parent
d80763ee11
commit
41a4de7b8e
@ -0,0 +1,25 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
---
|
||||
loader: taskgraph.loader.transform:loader
|
||||
|
||||
transforms:
|
||||
- taskgraph.transforms.fetch:transforms
|
||||
- taskgraph.transforms.job:transforms
|
||||
- taskgraph.transforms.task:transforms
|
||||
|
||||
job-defaults:
|
||||
docker-image: {in-tree: base}
|
||||
|
||||
jobs:
|
||||
android-sdk-3859397:
|
||||
description: Android SDK
|
||||
fetch:
|
||||
type: static-url
|
||||
url: https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
|
||||
artifact-name: sdk-tools-linux.zip
|
||||
sha256: 444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0
|
||||
size: 136964098
|
||||
artifact-prefix: mobile/android-sdk
|
||||
fetch-alias: android-sdk
|
@ -0,0 +1,31 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
---
|
||||
job-defaults:
|
||||
run:
|
||||
using: toolchain-script
|
||||
treeherder:
|
||||
kind: build
|
||||
platform: toolchains/opt
|
||||
tier: 1
|
||||
worker-type: b-android
|
||||
worker:
|
||||
docker-image: {in-tree: base}
|
||||
max-run-time: 1800
|
||||
|
||||
|
||||
linux64-android-sdk-linux-repack:
|
||||
attributes:
|
||||
artifact_prefix: mobile/android-sdk
|
||||
description: "Android SDK (Linux) repack toolchain build"
|
||||
fetches:
|
||||
fetch:
|
||||
- android-sdk
|
||||
run:
|
||||
script: repack-android-sdk-linux.sh
|
||||
resources: []
|
||||
toolchain-artifact: mobile/android-sdk/android-sdk-linux.tar.xz
|
||||
toolchain-alias: android-sdk-linux
|
||||
treeherder:
|
||||
symbol: TL(android-sdk-linux)
|
@ -0,0 +1,58 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
---
|
||||
job-defaults:
|
||||
run:
|
||||
using: index-search
|
||||
run-on-projects: []
|
||||
worker-type: always-optimized
|
||||
|
||||
|
||||
browsertime:
|
||||
attributes:
|
||||
toolchain-artifact: public/build/browsertime.tar.bz2
|
||||
description: "Browsertime toolchain"
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.toolchains.v3.browsertime.latest
|
||||
|
||||
linux64-ffmpeg-4.1.4:
|
||||
attributes:
|
||||
toolchain-artifact: 'public/ffmpeg-4.1.4-i686-static.tar.xz'
|
||||
description: "FFMPEG fetch"
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.content.v1.linux64-ffmpeg-4.1.4.latest
|
||||
|
||||
linux64-geckodriver:
|
||||
attributes:
|
||||
toolchain-artifact: public/build/geckodriver.tar.xz
|
||||
description: "Geckodriver toolchain"
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.toolchains.v3.linux64-geckodriver.latest
|
||||
|
||||
linux64-minidump-stackwalk:
|
||||
attributes:
|
||||
toolchain-artifact: public/build/minidump_stackwalk.tar.xz
|
||||
description: "minidump-stackwalk toolchain"
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.toolchains.v3.linux64-minidump-stackwalk.latest
|
||||
|
||||
linux64-node:
|
||||
attributes:
|
||||
toolchain-artifact: public/build/node.tar.xz
|
||||
description: "Node.js toolchain"
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.toolchains.v3.linux64-node-10.latest
|
||||
|
||||
visual-metrics:
|
||||
attributes:
|
||||
toolchain-artifact: public/visualmetrics.py
|
||||
description: "Browsertime visual metrics analysis script"
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.content.v1.visual-metrics.latest
|
@ -1,54 +1,18 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
---
|
||||
loader: taskgraph.loader.transform:loader
|
||||
|
||||
kind-dependencies:
|
||||
- fetch
|
||||
|
||||
transforms:
|
||||
- taskgraph.transforms.job:transforms
|
||||
- taskgraph.transforms.cached_tasks:transforms
|
||||
- taskgraph.transforms.task:transforms
|
||||
|
||||
job-defaults:
|
||||
worker-type: always-optimized
|
||||
run:
|
||||
using: index-search
|
||||
|
||||
jobs:
|
||||
browsertime:
|
||||
description: "Browsertime toolchain"
|
||||
attributes:
|
||||
toolchain-artifact: public/build/browsertime.tar.bz2
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.toolchains.v3.browsertime.latest
|
||||
linux64-ffmpeg-4.1.4:
|
||||
description: "FFMPEG fetch"
|
||||
attributes:
|
||||
toolchain-artifact: 'public/ffmpeg-4.1.4-i686-static.tar.xz'
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.content.v1.linux64-ffmpeg-4.1.4.latest
|
||||
linux64-geckodriver:
|
||||
description: "Geckodriver toolchain"
|
||||
attributes:
|
||||
toolchain-artifact: public/build/geckodriver.tar.xz
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.toolchains.v3.linux64-geckodriver.latest
|
||||
linux64-minidump-stackwalk:
|
||||
description: "minidump_stackwalk toolchain"
|
||||
attributes:
|
||||
toolchain-artifact: public/build/minidump_stackwalk.tar.xz
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.toolchains.v3.linux64-minidump-stackwalk.latest
|
||||
linux64-node:
|
||||
description: "Node.js toolchain"
|
||||
attributes:
|
||||
toolchain-artifact: public/build/node.tar.xz
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.toolchains.v3.linux64-node-10.latest
|
||||
visual-metrics:
|
||||
description: "Browsertime visual metrics analsyis script"
|
||||
attributes:
|
||||
toolchain-artifact: public/visualmetrics.py
|
||||
run:
|
||||
index-search:
|
||||
- gecko.cache.level-3.content.v1.visual-metrics.latest
|
||||
jobs-from:
|
||||
- android.yml
|
||||
- gecko-derived.yml
|
||||
|
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
export CURL='curl --location --retry 5'
|
||||
|
||||
ANDROID_SDK_VERSION='3859397'
|
||||
ANDROID_SDK_SHA256='444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0'
|
||||
SDK_ZIP_LOCATION="$HOME/sdk-tools-linux.zip"
|
||||
|
||||
$CURL --output "$SDK_ZIP_LOCATION" "https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_VERSION}.zip"
|
||||
echo "$ANDROID_SDK_SHA256 $SDK_ZIP_LOCATION" | sha256sum --check
|
||||
unzip -d "$ANDROID_SDK_ROOT" "$SDK_ZIP_LOCATION"
|
||||
rm "$SDK_ZIP_LOCATION"
|
||||
yes | "${ANDROID_SDK_ROOT}/tools/bin/sdkmanager" --licenses
|
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set +x
|
||||
|
||||
ANDROID_SDK_VERSION=3859397
|
||||
|
||||
curl -o "$HOME/sdk-tools-linux.zip" "https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_VERSION}.zip"
|
||||
unzip -d "$ANDROID_SDK_ROOT" "$HOME/sdk-tools-linux.zip"
|
||||
yes | "${ANDROID_SDK_ROOT}/tools/bin/sdkmanager" --licenses
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
export ANDROID_SDK_ROOT=$MOZ_FETCHES_DIR
|
||||
|
||||
yes | "${ANDROID_SDK_ROOT}/tools/bin/sdkmanager" --licenses
|
||||
|
||||
# It's nice to have the build logs include the state of the world upon completion.
|
||||
"${ANDROID_SDK_ROOT}/tools/bin/sdkmanager" --list
|
||||
|
||||
tar cf - -C "$ANDROID_SDK_ROOT" . --transform 's,^\./,android-sdk-linux/,' | xz > "$UPLOAD_DIR/android-sdk-linux.tar.xz"
|
Loading…
Reference in New Issue