| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can |
| # found in the LICENSE file. |
| |
| DEPS = [ |
| 'fuchsia/artifacts', |
| 'fuchsia/buildbucket_util', |
| 'fuchsia/checkout', |
| 'fuchsia/build', |
| 'recipe_engine/buildbucket', |
| 'recipe_engine/path', |
| ] |
| |
| |
| def RunSteps(api): |
| checkout = api.checkout.fuchsia_with_options( |
| path=api.path['start_dir'], |
| build=api.buildbucket.build, |
| manifest='minimal', |
| remote='https://fuchsia.googlesource.com/manifest', |
| project='fuchsia', |
| ) |
| build = api.build.with_options( |
| checkout=checkout, |
| build_dir=api.path['start_dir'].join('out', 'default'), |
| target='x64', |
| build_type='debug', |
| product='products/core.gni', |
| board='boards/x64.gni', |
| packages=['//bundles/buildbot:core'], |
| ) |
| |
| api.artifacts.gcs_bucket = 'fuchsia-artifacts' |
| api.artifacts.uuid = api.buildbucket_util.id |
| api.artifacts.upload('upload artifacts', build=build) |
| api.artifacts.package_repo_url() |
| api.artifacts.package_repo_url(host='127.0.0.1') |
| api.artifacts.package_blob_url() |
| api.artifacts.package_blob_url(host='127.0.0.1') |
| api.artifacts.image_url() |
| api.artifacts.image_url(host='127.0.0.1') |
| |
| |
| def GenTests(api): |
| yield api.test('basic') + api.buildbucket.try_build() |