2018-05-14 16:50:38 +00:00
|
|
|
# Copyright 2017 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
|
DEPS = [
|
|
|
|
'build',
|
2018-05-18 11:36:55 +00:00
|
|
|
'recipe_engine/path',
|
2019-04-24 18:14:27 +00:00
|
|
|
'recipe_engine/platform',
|
2018-05-14 16:50:38 +00:00
|
|
|
'recipe_engine/properties',
|
|
|
|
'recipe_engine/raw_io',
|
|
|
|
'run',
|
|
|
|
'vars',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def RunSteps(api):
|
|
|
|
api.vars.setup()
|
2018-05-18 11:36:55 +00:00
|
|
|
checkout_root = api.vars.cache_dir.join('work')
|
|
|
|
out_dir = checkout_root.join(
|
|
|
|
'skia', 'out', api.vars.builder_name, api.vars.configuration)
|
|
|
|
api.build(checkout_root=checkout_root, out_dir=out_dir)
|
|
|
|
dst = api.vars.swarming_out_dir.join('out', api.vars.configuration)
|
|
|
|
api.build.copy_build_products(out_dir=out_dir, dst=dst)
|
2018-05-14 16:50:38 +00:00
|
|
|
api.run.check_failure()
|
|
|
|
|
|
|
|
|
|
|
|
TEST_BUILDERS = [
|
2019-11-22 18:05:22 +00:00
|
|
|
'Build-Debian10-GCC-loongson3a-Release-Docker',
|
|
|
|
'Build-Debian10-GCC-x86-Debug-Docker',
|
|
|
|
'Build-Debian10-GCC-x86_64-Debug-Docker',
|
|
|
|
'Build-Debian10-GCC-x86_64-Release-NoGPU_Docker',
|
|
|
|
'Build-Debian10-GCC-x86_64-Release-Shared_Docker',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Debian9-Clang-arm-Release-Android_API26',
|
|
|
|
'Build-Debian9-Clang-arm-Release-Android_ASAN',
|
|
|
|
'Build-Debian9-Clang-arm-Release-Chromebook_GLES',
|
2019-11-22 18:05:22 +00:00
|
|
|
'Build-Debian9-Clang-arm-Release-Chromecast',
|
2018-10-10 13:38:14 +00:00
|
|
|
'Build-Debian9-Clang-arm-Release-Flutter_Android',
|
2019-11-20 15:58:30 +00:00
|
|
|
'Build-Debian9-Clang-arm64-Release-Android_Wuffs',
|
2018-10-08 19:07:42 +00:00
|
|
|
'Build-Debian9-Clang-x86-devrel-Android_SKQP',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Debug-Chromebook_GLES',
|
|
|
|
'Build-Debian9-Clang-x86_64-Debug-Coverage',
|
|
|
|
'Build-Debian9-Clang-x86_64-Debug-MSAN',
|
2018-06-29 00:41:04 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Debug-OpenCL',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Debug-SK_CPU_LIMIT_SSE41',
|
|
|
|
'Build-Debian9-Clang-x86_64-Debug-SafeStack',
|
2020-01-23 21:14:03 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Debug-SkVM',
|
|
|
|
'Build-Debian9-Clang-x86_64-Debug-SkVM_ASAN',
|
2019-06-10 17:06:00 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Debug-SwiftShader_MSAN',
|
2018-12-12 16:30:19 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Debug-Tidy',
|
2019-02-11 19:18:04 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Debug-Wuffs',
|
2019-11-22 18:05:22 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Release-ANGLE',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Release-ASAN',
|
2019-01-31 17:47:20 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Release-CMake',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Release-Fast',
|
|
|
|
'Build-Debian9-Clang-x86_64-Release-NoDEPS',
|
2018-06-08 16:37:53 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Release-Static',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Debian9-Clang-x86_64-Release-SwiftShader',
|
|
|
|
'Build-Debian9-Clang-x86_64-Release-Vulkan',
|
2018-08-22 13:35:32 +00:00
|
|
|
'Build-Debian9-EMCC-asmjs-Debug-PathKit',
|
|
|
|
'Build-Debian9-EMCC-asmjs-Release-PathKit',
|
2018-10-09 13:36:35 +00:00
|
|
|
'Build-Debian9-EMCC-wasm-Debug-CanvasKit',
|
2018-08-03 16:24:06 +00:00
|
|
|
'Build-Debian9-EMCC-wasm-Debug-PathKit',
|
2018-10-16 14:15:01 +00:00
|
|
|
'Build-Debian9-EMCC-wasm-Release-CanvasKit_CPU',
|
2018-08-03 14:26:00 +00:00
|
|
|
'Build-Debian9-EMCC-wasm-Release-PathKit',
|
2019-09-10 18:26:47 +00:00
|
|
|
'Build-Mac-Clang-arm-Debug-iOS',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Mac-Clang-arm64-Debug-Android_Vulkan',
|
|
|
|
'Build-Mac-Clang-arm64-Debug-iOS',
|
2018-08-03 14:07:47 +00:00
|
|
|
'Build-Mac-Clang-x86_64-Debug-ASAN',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Mac-Clang-x86_64-Debug-CommandBuffer',
|
|
|
|
'Build-Mac-Clang-x86_64-Debug-Metal',
|
2018-05-17 16:17:10 +00:00
|
|
|
'Build-Mac-Clang-x86_64-Release-MoltenVK_Vulkan',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Win-Clang-arm64-Release-Android',
|
|
|
|
'Build-Win-Clang-x86-Debug-Exceptions',
|
2019-11-22 18:05:22 +00:00
|
|
|
'Build-Win-Clang-x86_64-Debug-ANGLE',
|
2018-08-07 20:58:15 +00:00
|
|
|
'Build-Win-Clang-x86_64-Debug-OpenCL',
|
2019-11-22 18:05:22 +00:00
|
|
|
'Build-Win-Clang-x86_64-Release-Shared',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Build-Win-Clang-x86_64-Release-Vulkan',
|
2018-10-08 19:07:42 +00:00
|
|
|
'Test-Debian9-Clang-GCE-CPU-AVX2-universal-devrel-All-Android_SKQP',
|
2018-05-14 16:50:38 +00:00
|
|
|
'Housekeeper-PerCommit-CheckGeneratedFiles',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Default properties used for TEST_BUILDERS.
|
|
|
|
defaultProps = lambda buildername: dict(
|
|
|
|
buildername=buildername,
|
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
|
|
|
revision='abc123',
|
|
|
|
path_config='kitchen',
|
|
|
|
patch_set=2,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]'
|
|
|
|
)
|
|
|
|
|
|
|
|
def GenTests(api):
|
|
|
|
for buildername in TEST_BUILDERS:
|
|
|
|
test = (
|
|
|
|
api.test(buildername) +
|
|
|
|
api.properties(**defaultProps(buildername))
|
|
|
|
)
|
2019-04-24 18:14:27 +00:00
|
|
|
if 'Win' in buildername and not 'LenovoYogaC630' in buildername:
|
|
|
|
test += api.platform('win', 64)
|
2018-05-14 16:50:38 +00:00
|
|
|
yield test
|
2019-11-18 20:03:15 +00:00
|
|
|
|
|
|
|
yield (
|
|
|
|
api.test('unknown-docker-image') +
|
|
|
|
api.properties(**defaultProps('Build-Unix-GCC-x86_64-Release-Docker')) +
|
|
|
|
api.expect_exception('Exception')
|
|
|
|
)
|