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 import contextlib | 5 import contextlib |
6 | 6 |
7 DEPS = [ | 7 DEPS = [ |
8 'depot_tools/bot_update', | 8 'depot_tools/bot_update', |
9 'depot_tools/gclient', | 9 'depot_tools/gclient', |
10 'file', | 10 'file', |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 ], archive_name='linux-x64.zip') | 153 ], archive_name='linux-x64.zip') |
154 UploadArtifacts(api, upload_dir, [ | 154 UploadArtifacts(api, upload_dir, [ |
155 'out/%s/libsky_shell.so' % build_output_dir | 155 'out/%s/libsky_shell.so' % build_output_dir |
156 ], archive_name='symbols.zip') | 156 ], archive_name='symbols.zip') |
157 | 157 |
158 UploadDartPackage(api, 'sky_engine') | 158 UploadDartPackage(api, 'sky_engine') |
159 UploadDartPackage(api, 'sky_services') | 159 UploadDartPackage(api, 'sky_services') |
160 | 160 |
161 | 161 |
162 def BuildLinux(api): | 162 def BuildLinux(api): |
163 RunGN(api) | 163 RunGN(api, '--unoptimized') |
eseidel
2016/08/19 19:44:40
We should probably pass some sort of name to RunGN
| |
164 Build(api, 'host_debug') | 164 Build(api, 'host_debug_unopt') |
165 UploadArtifacts(api, 'linux-x64', [ | 165 UploadArtifacts(api, 'linux-x64', [ |
166 'out/host_debug/icudtl.dat', | 166 'out/host_debug_unopt/icudtl.dat', |
167 'out/host_debug/sky_shell', | 167 'out/host_debug_unopt/sky_shell', |
168 'out/host_debug/sky_snapshot', | 168 'out/host_debug_unopt/sky_snapshot', |
169 ]) | 169 ]) |
170 | 170 |
171 | 171 |
172 def TestObservatory(api): | 172 def TestObservatory(api): |
173 checkout = api.path['slave_build'].join('src') | 173 checkout = api.path['slave_build'].join('src') |
174 sky_shell_path = checkout.join('out/host_debug/sky_shell') | 174 sky_shell_path = checkout.join('out/host_debug_unopt/sky_shell') |
175 empty_main_path = \ | 175 empty_main_path = \ |
176 checkout.join('flutter/sky/shell/testing/observatory/empty_main.dart') | 176 checkout.join('flutter/sky/shell/testing/observatory/empty_main.dart') |
177 test_path = checkout.join('flutter/sky/shell/testing/observatory/test.dart') | 177 test_path = checkout.join('flutter/sky/shell/testing/observatory/test.dart') |
178 test_cmd = ['dart', test_path, sky_shell_path, empty_main_path] | 178 test_cmd = ['dart', test_path, sky_shell_path, empty_main_path] |
179 api.step('test observatory and service protocol', test_cmd, cwd=checkout) | 179 api.step('test observatory and service protocol', test_cmd, cwd=checkout) |
180 | 180 |
181 | 181 |
182 def BuildMac(api): | 182 def BuildMac(api): |
183 RunGN(api, '--runtime-mode', 'debug') | 183 RunGN(api, '--runtime-mode', 'debug', '--unoptimized') |
184 RunGN(api, '--runtime-mode', 'profile', '--android') | 184 RunGN(api, '--runtime-mode', 'profile', '--android') |
185 RunGN(api, '--runtime-mode', 'release', '--android') | 185 RunGN(api, '--runtime-mode', 'release', '--android') |
186 | 186 |
187 Build(api, 'host_debug') | 187 Build(api, 'host_debug_unopt') |
188 Build(api, 'android_profile', 'flutter/lib/snapshot') | 188 Build(api, 'android_profile', 'flutter/lib/snapshot') |
189 Build(api, 'android_release', 'flutter/lib/snapshot') | 189 Build(api, 'android_release', 'flutter/lib/snapshot') |
190 | 190 |
191 UploadArtifacts(api, 'darwin-x64', [ | 191 UploadArtifacts(api, 'darwin-x64', [ |
192 'out/host_debug/sky_snapshot', | 192 'out/host_debug_unopt/sky_snapshot', |
193 'out/host_debug/sky_shell', | 193 'out/host_debug_unopt/sky_shell', |
194 'out/host_debug/icudtl.dat', | 194 'out/host_debug_unopt/icudtl.dat', |
195 ]) | 195 ]) |
196 | 196 |
197 UploadArtifacts(api, "android-arm-profile" , [ | 197 UploadArtifacts(api, "android-arm-profile" , [ |
198 'out/android_profile/clang_i386/gen_snapshot', | 198 'out/android_profile/clang_i386/gen_snapshot', |
199 ], archive_name='darwin-x64.zip') | 199 ], archive_name='darwin-x64.zip') |
200 | 200 |
201 UploadArtifacts(api, "android-arm-release" , [ | 201 UploadArtifacts(api, "android-arm-release" , [ |
202 'out/android_release/clang_i386/gen_snapshot', | 202 'out/android_release/clang_i386/gen_snapshot', |
203 ], archive_name='darwin-x64.zip') | 203 ], archive_name='darwin-x64.zip') |
204 | 204 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
302 BuildIOS(api) | 302 BuildIOS(api) |
303 | 303 |
304 | 304 |
305 def GenTests(api): | 305 def GenTests(api): |
306 # A valid commit to flutter/engine, to make the gsutil urls look real. | 306 # A valid commit to flutter/engine, to make the gsutil urls look real. |
307 for platform in ('mac', 'linux'): | 307 for platform in ('mac', 'linux'): |
308 yield (api.test(platform) + api.platform(platform, 64) | 308 yield (api.test(platform) + api.platform(platform, 64) |
309 + api.properties(mastername='client.flutter', | 309 + api.properties(mastername='client.flutter', |
310 buildername='%s Engine' % platform.capitalize(), | 310 buildername='%s Engine' % platform.capitalize(), |
311 slavename='fake-m1', clobber='')) | 311 slavename='fake-m1', clobber='')) |
OLD | NEW |