aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2017-07-20 10:21:38 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-20 18:25:12 +0000
commitfe40abc14b0f63e10069478eb93b2ecc1ab0c616 (patch)
treeb3f483c288751ce8da86b5eda1a9e75dd2d00e03 /infra
parentf93552ba44328e86829bfe9d2735f7cd7cd16063 (diff)
Add new Android builder which uses API_LEVEL 26
Bug: skia:6870 Change-Id: Idd9a27518c1123c0a729b4d07461047f5530aae3 Reviewed-on: https://skia-review.googlesource.com/24960 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'infra')
-rw-r--r--infra/bots/jobs.json1
-rw-r--r--infra/bots/recipe_modules/flavor/examples/full.expected/Build-Debian9-Clang-arm-Release-Android_API26.json54
-rw-r--r--infra/bots/recipe_modules/flavor/examples/full.py1
-rw-r--r--infra/bots/recipe_modules/flavor/gn_android_flavor.py7
-rw-r--r--infra/bots/tasks.json36
5 files changed, 99 insertions, 0 deletions
diff --git a/infra/bots/jobs.json b/infra/bots/jobs.json
index f16147aa81..4dc275de4b 100644
--- a/infra/bots/jobs.json
+++ b/infra/bots/jobs.json
@@ -2,6 +2,7 @@
"Build-Debian9-Clang-arm-Debug-Android",
"Build-Debian9-Clang-arm-Debug-Chromebook_ARM_GLES",
"Build-Debian9-Clang-arm-Release-Android",
+ "Build-Debian9-Clang-arm-Release-Android_API26",
"Build-Debian9-Clang-arm-Release-Chromebook_ARM_GLES",
"Build-Debian9-Clang-arm64-Debug-Android",
"Build-Debian9-Clang-arm64-Debug-Android_Vulkan",
diff --git a/infra/bots/recipe_modules/flavor/examples/full.expected/Build-Debian9-Clang-arm-Release-Android_API26.json b/infra/bots/recipe_modules/flavor/examples/full.expected/Build-Debian9-Clang-arm-Release-Android_API26.json
new file mode 100644
index 0000000000..8ac3e3fd14
--- /dev/null
+++ b/infra/bots/recipe_modules/flavor/examples/full.expected/Build-Debian9-Clang-arm-Release-Android_API26.json
@@ -0,0 +1,54 @@
+[
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "[CUSTOM_/_B_WORK]/skia/bin/fetch-gn"
+ ],
+ "cwd": "[CUSTOM_/_B_WORK]/skia",
+ "env": {
+ "BUILDTYPE": "Release",
+ "CHROME_HEADLESS": "1",
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
+ "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-arm-Release-Android_API26"
+ },
+ "infra_step": true,
+ "name": "fetch-gn"
+ },
+ {
+ "cmd": [
+ "[CUSTOM_/_B_WORK]/skia/bin/gn",
+ "gen",
+ "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-arm-Release-Android_API26/Release",
+ "--args=is_debug=false ndk=\"[START_DIR]/android_ndk_linux\" ndk_api=26 target_cpu=\"arm\""
+ ],
+ "cwd": "[CUSTOM_/_B_WORK]/skia",
+ "env": {
+ "BUILDTYPE": "Release",
+ "CHROME_HEADLESS": "1",
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
+ "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-arm-Release-Android_API26"
+ },
+ "name": "gn gen"
+ },
+ {
+ "cmd": [
+ "ninja",
+ "-C",
+ "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-arm-Release-Android_API26/Release"
+ ],
+ "cwd": "[CUSTOM_/_B_WORK]/skia",
+ "env": {
+ "BUILDTYPE": "Release",
+ "CHROME_HEADLESS": "1",
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
+ "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Debian9-Clang-arm-Release-Android_API26"
+ },
+ "name": "ninja"
+ },
+ {
+ "name": "$result",
+ "recipe_result": null,
+ "status_code": 0
+ }
+] \ No newline at end of file
diff --git a/infra/bots/recipe_modules/flavor/examples/full.py b/infra/bots/recipe_modules/flavor/examples/full.py
index 14eca7fa1a..f7d0ae5587 100644
--- a/infra/bots/recipe_modules/flavor/examples/full.py
+++ b/infra/bots/recipe_modules/flavor/examples/full.py
@@ -54,6 +54,7 @@ def RunSteps(api):
TEST_BUILDERS = [
+ 'Build-Debian9-Clang-arm-Release-Android_API26',
'Build-Mac-Clang-arm64-Debug-Android_Vulkan',
'Build-Mac-Clang-x86_64-Debug-CommandBuffer',
'Build-Ubuntu-Clang-x86_64-Release-Mini',
diff --git a/infra/bots/recipe_modules/flavor/gn_android_flavor.py b/infra/bots/recipe_modules/flavor/gn_android_flavor.py
index 4dd1093450..c0cf748e43 100644
--- a/infra/bots/recipe_modules/flavor/gn_android_flavor.py
+++ b/infra/bots/recipe_modules/flavor/gn_android_flavor.py
@@ -5,6 +5,7 @@
from recipe_engine import recipe_api
import default_flavor
+import re
import subprocess
@@ -69,6 +70,12 @@ class GNAndroidFlavorUtils(default_flavor.DefaultFlavorUtils):
if 'Vulkan' in extra_config:
args['ndk_api'] = 24
args['skia_enable_vulkan_debug_layers'] = 'false'
+
+ # If an Android API level is specified, use that.
+ m = re.search(r'API(\d+)', extra_config)
+ if m and len(m.groups()) == 1:
+ args['ndk_api'] = m.groups()[0]
+
if extra_cflags:
args['extra_cflags'] = repr(extra_cflags).replace("'", '"')
diff --git a/infra/bots/tasks.json b/infra/bots/tasks.json
index 0bfda7d757..86dd5fcc03 100644
--- a/infra/bots/tasks.json
+++ b/infra/bots/tasks.json
@@ -18,6 +18,12 @@
"Build-Debian9-Clang-arm-Release-Android"
]
},
+ "Build-Debian9-Clang-arm-Release-Android_API26": {
+ "priority": 0.8,
+ "tasks": [
+ "Build-Debian9-Clang-arm-Release-Android_API26"
+ ]
+ },
"Build-Debian9-Clang-arm-Release-Chromebook_ARM_GLES": {
"priority": 0.8,
"tasks": [
@@ -2403,6 +2409,36 @@
"isolate": "compile_skia.isolate",
"priority": 0.8
},
+ "Build-Debian9-Clang-arm-Release-Android_API26": {
+ "cipd_packages": [
+ {
+ "name": "skia/bots/android_ndk_linux",
+ "path": "android_ndk_linux",
+ "version": "version:10"
+ }
+ ],
+ "dimensions": [
+ "cpu:x86-64-avx2",
+ "gpu:none",
+ "os:Debian-9.0",
+ "pool:Skia"
+ ],
+ "extra_args": [
+ "--workdir",
+ "../../..",
+ "compile",
+ "repository=<(REPO)",
+ "buildername=Build-Debian9-Clang-arm-Release-Android_API26",
+ "swarm_out_dir=${ISOLATED_OUTDIR}",
+ "revision=<(REVISION)",
+ "patch_repo=<(PATCH_REPO)",
+ "patch_storage=<(PATCH_STORAGE)",
+ "patch_issue=<(ISSUE)",
+ "patch_set=<(PATCHSET)"
+ ],
+ "isolate": "compile_skia.isolate",
+ "priority": 0.8
+ },
"Build-Debian9-Clang-arm-Release-Chromebook_ARM_GLES": {
"cipd_packages": [
{