blob: 541f4416b1af9a64ee36a3ab81240d891f69a602 [file] [log] [blame]
Mike Kleinfa74caa2017-03-13 07:54:11 -07001[
2 {
3 "cmd": [
4 "python",
5 "-u",
Robert Iannucci8cd50412017-07-07 14:36:58 -07006 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
7 "--json-output",
8 "/path/to/tmp/json",
9 "ensure-directory",
10 "--mode",
11 "0777",
12 "[CUSTOM_/_B_WORK]"
Mike Kleinfa74caa2017-03-13 07:54:11 -070013 ],
14 "infra_step": true,
Robert Iannucci8cd50412017-07-07 14:36:58 -070015 "name": "makedirs checkout_path"
Mike Kleinfa74caa2017-03-13 07:54:11 -070016 },
17 {
18 "cmd": [
19 "python",
20 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040021 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
22 "--json-output",
23 "/path/to/tmp/json",
24 "remove",
Eric Borenffb48e12017-04-19 14:39:21 -040025 "[CUSTOM_/_B_WORK]/.gclient_entries"
26 ],
27 "infra_step": true,
Eric Boren3e2ffd72017-06-16 13:10:22 -040028 "name": "remove [CUSTOM_/_B_WORK]/.gclient_entries"
Eric Borenffb48e12017-04-19 14:39:21 -040029 },
30 {
31 "cmd": [
32 "python",
33 "-u",
Mike Kleinfa74caa2017-03-13 07:54:11 -070034 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
Eric Boren6f67cf72017-09-22 15:43:36 -040035 "--spec-path",
Mike Kleinfa74caa2017-03-13 07:54:11 -070036 "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]",
37 "--patch_root",
38 "skia",
39 "--revision_mapping_file",
John Budorick74be2f22017-04-28 18:59:04 -070040 "{\"got_revision\": \"skia\"}",
Mike Kleinfa74caa2017-03-13 07:54:11 -070041 "--git-cache-dir",
42 "[CUSTOM_/_B_CACHE]",
recipe-rollera6e46862017-06-08 16:13:19 -070043 "--cleanup-dir",
44 "[CLEANUP]/bot_update",
Mike Kleinfa74caa2017-03-13 07:54:11 -070045 "--output_json",
46 "/path/to/tmp/json",
47 "--revision",
recipe-rollera1c50c62017-05-03 05:32:29 -070048 "skia@abc123"
Mike Kleinfa74caa2017-03-13 07:54:11 -070049 ],
50 "cwd": "[CUSTOM_/_B_WORK]",
Eric Boren6f67cf72017-09-22 15:43:36 -040051 "env_prefixes": {
52 "PATH": [
53 "RECIPE_PACKAGE_REPO[depot_tools]"
54 ]
Mike Kleinfa74caa2017-03-13 07:54:11 -070055 },
56 "infra_step": true,
57 "name": "bot_update",
58 "~followup_annotations": [
59 "@@@STEP_TEXT@Some step text@@@",
60 "@@@STEP_LOG_LINE@json.output@{@@@",
61 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
62 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
64 "@@@STEP_LOG_LINE@json.output@ }, @@@",
65 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
66 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@",
67 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/skia.git\", @@@",
68 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
69 "@@@STEP_LOG_LINE@json.output@ }@@@",
70 "@@@STEP_LOG_LINE@json.output@ }, @@@",
71 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
72 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@",
73 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
74 "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
75 "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
76 "@@@STEP_LOG_LINE@json.output@ }, @@@",
77 "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@",
recipe-rolleracf02022017-10-31 15:53:18 -070078 "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@",
recipe-roller275d92c2017-12-08 05:21:04 -080079 "@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@",
recipe-rolleracf02022017-10-31 15:53:18 -070080 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@",
recipe-roller275d92c2017-12-08 05:21:04 -080081 "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
82 "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/skia.git\", @@@",
83 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
84 "@@@STEP_LOG_LINE@json.output@ }@@@",
recipe-rolleracf02022017-10-31 15:53:18 -070085 "@@@STEP_LOG_LINE@json.output@ }@@@",
86 "@@@STEP_LOG_LINE@json.output@ }, @@@",
87 "@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@",
88 "@@@STEP_LOG_LINE@json.output@ }, @@@",
Mike Kleinfa74caa2017-03-13 07:54:11 -070089 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
90 "@@@STEP_LOG_LINE@json.output@}@@@",
91 "@@@STEP_LOG_END@json.output@@@",
92 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
93 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
94 ]
95 },
96 {
97 "cmd": [
98 "python",
99 "-u",
100 "[CUSTOM_/_B_WORK]/skia/bin/fetch-gn"
101 ],
102 "cwd": "[CUSTOM_/_B_WORK]/skia",
103 "env": {
104 "BUILDTYPE": "Release",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700105 "CHROME_HEADLESS": "1",
recipe-rollere0f7e162017-05-31 16:13:27 -0700106 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700107 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x64-Release-iOS"
108 },
109 "infra_step": true,
110 "name": "fetch-gn"
111 },
112 {
113 "cmd": [
114 "[CUSTOM_/_B_WORK]/skia/bin/gn",
115 "gen",
116 "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x64-Release-iOS/Release",
Ben Wagnere463d982018-01-03 16:15:33 -0500117 "--args=cc=\"clang\" cxx=\"clang++\" is_debug=false skia_ios_identity=\".*GS9WA.*\" skia_ios_profile=\"Upstream Testing Provisioning Profile\" target_cpu=\"x64\" target_os=\"ios\""
Mike Kleinfa74caa2017-03-13 07:54:11 -0700118 ],
119 "cwd": "[CUSTOM_/_B_WORK]/skia",
120 "env": {
121 "BUILDTYPE": "Release",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700122 "CHROME_HEADLESS": "1",
recipe-rollere0f7e162017-05-31 16:13:27 -0700123 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700124 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x64-Release-iOS"
125 },
126 "name": "gn gen"
127 },
128 {
129 "cmd": [
130 "ninja",
Mike Klein7a13d872017-11-06 09:28:59 -0500131 "-k",
132 "0",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700133 "-C",
134 "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x64-Release-iOS/Release"
135 ],
136 "cwd": "[CUSTOM_/_B_WORK]/skia",
137 "env": {
138 "BUILDTYPE": "Release",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700139 "CHROME_HEADLESS": "1",
recipe-rollere0f7e162017-05-31 16:13:27 -0700140 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700141 "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x64-Release-iOS"
142 },
143 "name": "ninja"
144 },
145 {
146 "cmd": [
147 "python",
148 "-u",
Stephan Altmueller88df8d22018-03-07 14:44:44 -0500149 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\n\ntry:\n os.makedirs(dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\nfor pattern in build_products_whitelist:\n path = os.path.join(src, pattern)\n for f in glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath(f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedirs(os.path.dirname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700150 "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x64-Release-iOS/Release",
Eric Borenbd2e1f12018-04-17 11:28:46 +0000151 "[CUSTOM_[SWARM_OUT_DIR]]/out/Release"
Mike Kleinfa74caa2017-03-13 07:54:11 -0700152 ],
153 "infra_step": true,
154 "name": "copy build products",
155 "~followup_annotations": [
156 "@@@STEP_LOG_LINE@python.inline@import errno@@@",
157 "@@@STEP_LOG_LINE@python.inline@import glob@@@",
158 "@@@STEP_LOG_LINE@python.inline@import os@@@",
159 "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
160 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
161 "@@@STEP_LOG_LINE@python.inline@@@@",
162 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
163 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
Stephan Altmueller88df8d22018-03-07 14:44:44 -0500164 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@",
Mike Kleinfa74caa2017-03-13 07:54:11 -0700165 "@@@STEP_LOG_LINE@python.inline@@@@",
166 "@@@STEP_LOG_LINE@python.inline@try:@@@",
167 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@",
168 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
169 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@",
170 "@@@STEP_LOG_LINE@python.inline@ raise@@@",
171 "@@@STEP_LOG_LINE@python.inline@@@@",
172 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
173 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@",
174 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@",
175 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
176 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@",
177 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@",
178 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@",
179 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@",
180 "@@@STEP_LOG_END@python.inline@@@"
181 ]
182 },
183 {
184 "name": "$result",
185 "recipe_result": null,
186 "status_code": 0
187 }
188]