| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 test_cmd = ['dart', test_path, sky_shell_path, empty_main_path] | 181 test_cmd = ['dart', test_path, sky_shell_path, empty_main_path] |
| 182 api.step('test observatory and service protocol', test_cmd, cwd=checkout) | 182 api.step('test observatory and service protocol', test_cmd, cwd=checkout) |
| 183 | 183 |
| 184 | 184 |
| 185 def BuildMac(api): | 185 def BuildMac(api): |
| 186 RunGN(api, '--runtime-mode', 'debug') | 186 RunGN(api, '--runtime-mode', 'debug') |
| 187 RunGN(api, '--runtime-mode', 'profile', '--android') | 187 RunGN(api, '--runtime-mode', 'profile', '--android') |
| 188 RunGN(api, '--runtime-mode', 'release', '--android') | 188 RunGN(api, '--runtime-mode', 'release', '--android') |
| 189 | 189 |
| 190 Build(api, 'host_debug') | 190 Build(api, 'host_debug') |
| 191 Build(api, 'android_profile', 'flutter/sky/engine/bindings:snapshot_cc') | 191 Build(api, 'android_profile', 'flutter/lib/snapshot') |
| 192 Build(api, 'android_release', 'flutter/sky/engine/bindings:snapshot_cc') | 192 Build(api, 'android_release', 'flutter/lib/snapshot') |
| 193 | 193 |
| 194 UploadArtifacts(api, 'darwin-x64', [ | 194 UploadArtifacts(api, 'darwin-x64', [ |
| 195 'out/host_debug/sky_snapshot', | 195 'out/host_debug/sky_snapshot', |
| 196 'out/host_debug/sky_shell', | 196 'out/host_debug/sky_shell', |
| 197 'out/host_debug/icudtl.dat', | 197 'out/host_debug/icudtl.dat', |
| 198 ]) | 198 ]) |
| 199 | 199 |
| 200 UploadArtifacts(api, "android-arm-profile" , [ | 200 UploadArtifacts(api, "android-arm-profile" , [ |
| 201 'out/android_profile/clang_i386/gen_snapshot', | 201 'out/android_profile/clang_i386/gen_snapshot', |
| 202 ], archive_name='darwin-x64.zip') | 202 ], archive_name='darwin-x64.zip') |
| (...skipping 21 matching lines...) Expand all Loading... |
| 224 create_ios_framework_cmd, cwd=checkout) | 224 create_ios_framework_cmd, cwd=checkout) |
| 225 | 225 |
| 226 # Zip Flutter.framework and upload it to cloud storage: | 226 # Zip Flutter.framework and upload it to cloud storage: |
| 227 api.zip.directory('Archive Flutter.framework for %s' % label, | 227 api.zip.directory('Archive Flutter.framework for %s' % label, |
| 228 label_dir.join('Flutter.framework'), | 228 label_dir.join('Flutter.framework'), |
| 229 label_dir.join('Flutter.framework.zip')) | 229 label_dir.join('Flutter.framework.zip')) |
| 230 | 230 |
| 231 UploadArtifacts(api, bucket_name, [ | 231 UploadArtifacts(api, bucket_name, [ |
| 232 'dart/runtime/bin/dart_io_entries.txt', | 232 'dart/runtime/bin/dart_io_entries.txt', |
| 233 'flutter/sky/engine/bindings/dart_vm_entry_points.txt', | 233 'flutter/sky/engine/bindings/dart_vm_entry_points.txt', |
| 234 'flutter/sky/engine/bindings/snapshot.dart', | 234 'flutter/lib/snapshot/snapshot.dart', |
| 235 'out/%s/clang_x64/gen_snapshot' % device_out, | 235 'out/%s/clang_x64/gen_snapshot' % device_out, |
| 236 'out/%s/Flutter.framework.zip' % label, | 236 'out/%s/Flutter.framework.zip' % label, |
| 237 ]) | 237 ]) |
| 238 | 238 |
| 239 | 239 |
| 240 def BuildIOS(api): | 240 def BuildIOS(api): |
| 241 # Generate Ninja files for all valid configurations. | 241 # Generate Ninja files for all valid configurations. |
| 242 RunGN(api, '--ios', '--runtime-mode', 'debug') | 242 RunGN(api, '--ios', '--runtime-mode', 'debug') |
| 243 RunGN(api, '--ios', '--runtime-mode', 'profile') | 243 RunGN(api, '--ios', '--runtime-mode', 'profile') |
| 244 RunGN(api, '--ios', '--runtime-mode', 'release') | 244 RunGN(api, '--ios', '--runtime-mode', 'release') |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 BuildIOS(api) | 305 BuildIOS(api) |
| 306 | 306 |
| 307 | 307 |
| 308 def GenTests(api): | 308 def GenTests(api): |
| 309 # A valid commit to flutter/engine, to make the gsutil urls look real. | 309 # A valid commit to flutter/engine, to make the gsutil urls look real. |
| 310 for platform in ('mac', 'linux'): | 310 for platform in ('mac', 'linux'): |
| 311 yield (api.test(platform) + api.platform(platform, 64) | 311 yield (api.test(platform) + api.platform(platform, 64) |
| 312 + api.properties(mastername='client.flutter', | 312 + api.properties(mastername='client.flutter', |
| 313 buildername='%s Engine' % platform.capitalize(), | 313 buildername='%s Engine' % platform.capitalize(), |
| 314 slavename='fake-m1', clobber='')) | 314 slavename='fake-m1', clobber='')) |
| OLD | NEW |