| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 DEPS = [ | 5 DEPS = [ |
| 6 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'depot_tools/gclient', | 7 'depot_tools/gclient', |
| 8 'recipe_engine/path', | 8 'recipe_engine/path', |
| 9 'recipe_engine/properties', | 9 'recipe_engine/properties', |
| 10 'recipe_engine/python', | 10 'recipe_engine/python', |
| 11 ] | 11 ] |
| 12 | 12 |
| 13 | 13 |
| 14 def RunSteps(api): | 14 def RunSteps(api): |
| 15 api.gclient.set_config('wasm_llvm') | 15 api.gclient.set_config('wasm_llvm') |
| 16 result = api.bot_update.ensure_checkout(force=True) | 16 result = api.bot_update.ensure_checkout() |
| 17 got_revision = result.presentation.properties['got_waterfall_revision'] | 17 got_revision = result.presentation.properties['got_waterfall_revision'] |
| 18 | 18 |
| 19 env = { | 19 env = { |
| 20 'BUILDBOT_MASTERNAME': api.properties['mastername'], | 20 'BUILDBOT_MASTERNAME': api.properties['mastername'], |
| 21 'BUILDBOT_BUILDERNAME': api.properties['buildername'], | 21 'BUILDBOT_BUILDERNAME': api.properties['buildername'], |
| 22 'BUILDBOT_REVISION': api.properties['revision'], | 22 'BUILDBOT_REVISION': api.properties['revision'], |
| 23 'BUILDBOT_GOT_WATERFALL_REVISION': got_revision, | 23 'BUILDBOT_GOT_WATERFALL_REVISION': got_revision, |
| 24 } | 24 } |
| 25 api.python('annotated steps', | 25 api.python('annotated steps', |
| 26 api.path['checkout'].join('src', 'build.py'), | 26 api.path['checkout'].join('src', 'build.py'), |
| 27 allow_subannotations=True, | 27 allow_subannotations=True, |
| 28 cwd=api.path['checkout'], | 28 cwd=api.path['checkout'], |
| 29 env = env) | 29 env = env) |
| 30 | 30 |
| 31 | 31 |
| 32 def GenTests(api): | 32 def GenTests(api): |
| 33 yield ( | 33 yield ( |
| 34 api.test('linux') + | 34 api.test('linux') + |
| 35 api.properties( | 35 api.properties( |
| 36 mastername = 'client.wasm.llvm', | 36 mastername = 'client.wasm.llvm', |
| 37 buildername = 'linux', | 37 buildername = 'linux', |
| 38 slavename = 'TestSlavename', | 38 slavename = 'TestSlavename', |
| 39 revision = 'abcd', | 39 revision = 'abcd', |
| 40 )) | 40 )) |
| OLD | NEW |