OLD | NEW |
---|---|
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 # Recipe module for Skia Swarming trigger. | 6 # Recipe module for Skia Swarming trigger. |
7 | 7 |
8 | 8 |
9 import os | 9 import os |
10 import json | 10 import json |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
354 cipd_packages = [] | 354 cipd_packages = [] |
355 | 355 |
356 # Android bots require a toolchain. | 356 # Android bots require a toolchain. |
357 if 'Android' in api.properties['buildername']: | 357 if 'Android' in api.properties['buildername']: |
358 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_sdk')) | 358 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_sdk')) |
359 if 'Mac' in api.properties['buildername']: | 359 if 'Mac' in api.properties['buildername']: |
360 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_ndk_darwin')) | 360 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_ndk_darwin')) |
361 else: | 361 else: |
362 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_ndk_linux')) | 362 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'android_ndk_linux')) |
363 | 363 |
364 if 'Ubuntu' in api.properties['buildername']: | |
365 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'clang_linux')) | |
borenet
2016/08/31 18:59:26
Shouldn't this only be for Clang bots?
mtklein
2016/08/31 19:05:48
Ideally, yes. However... all the *SAN bots claim
borenet
2016/08/31 19:08:09
Yeah, we should probably rename them. In the mean
| |
366 | |
364 # Windows bots require a toolchain. | 367 # Windows bots require a toolchain. |
365 if 'Win' in builder_name: | 368 if 'Win' in builder_name: |
366 version_file = infrabots_dir.join('assets', 'win_toolchain', 'VERSION') | 369 version_file = infrabots_dir.join('assets', 'win_toolchain', 'VERSION') |
367 version = api.run.readfile(version_file, | 370 version = api.run.readfile(version_file, |
368 name='read win_toolchain VERSION', | 371 name='read win_toolchain VERSION', |
369 test_data='0').rstrip() | 372 test_data='0').rstrip() |
370 version = 'version:%s' % version | 373 version = 'version:%s' % version |
371 pkg = ('t', 'skia/bots/win_toolchain', version) | 374 pkg = ('t', 'skia/bots/win_toolchain', version) |
372 cipd_packages.append(pkg) | 375 cipd_packages.append(pkg) |
373 | 376 |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
804 mastername='client.skia', | 807 mastername='client.skia', |
805 slavename='skiabot-linux-swarm-000', | 808 slavename='skiabot-linux-swarm-000', |
806 buildnumber=5, | 809 buildnumber=5, |
807 path_config='kitchen', | 810 path_config='kitchen', |
808 revision='abc123', | 811 revision='abc123', |
809 **gerrit_kwargs) + | 812 **gerrit_kwargs) + |
810 api.step_data( | 813 api.step_data( |
811 'upload new .isolated file for test_skia', | 814 'upload new .isolated file for test_skia', |
812 stdout=api.raw_io.output('def456 XYZ.isolated')) | 815 stdout=api.raw_io.output('def456 XYZ.isolated')) |
813 ) | 816 ) |
OLD | NEW |