OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 = ['path', 'git', 'properties', 'step', 'platform'] | 5 DEPS = [ |
| 6 'git', |
| 7 'path', |
| 8 'platform', |
| 9 'properties', |
| 10 'step', |
| 11 ] |
6 | 12 |
7 def GenSteps(api): | 13 def GenSteps(api): |
8 yield api.git.checkout(api.properties['repository'] + '.git', recursive=True) | 14 yield api.git.checkout(api.properties['repository'] + '.git', recursive=True) |
9 | 15 |
10 tmp_path = api.path.checkout('.tmp') | 16 tmp_path = api.path.checkout('.tmp') |
11 yield api.step('mktmp', ['mkdir', tmp_path]) | 17 yield api.step('mktmp', ['mkdir', tmp_path]) |
12 yield api.step('update-install', ['npm', 'install', '--tmp', tmp_path], | 18 yield api.step('update-install', ['npm', 'install', '--tmp', tmp_path], |
13 cwd=api.path.checkout()) | 19 cwd=api.path.checkout()) |
14 | 20 |
15 test_prefix = ['xvfb-run'] if api.platform.is_linux else [] | 21 test_prefix = ['xvfb-run'] if api.platform.is_linux else [] |
16 yield api.step('test', test_prefix+['grunt', 'test-buildbot'], | 22 yield api.step('test', test_prefix+['grunt', 'test-buildbot'], |
17 cwd=api.path.checkout(), allow_subannotations=True) | 23 cwd=api.path.checkout(), allow_subannotations=True) |
18 | 24 |
19 | 25 |
20 def GenTests(api): | 26 def GenTests(api): |
21 yield 'basic', { | 27 yield 'basic', { |
22 'properties': api.properties_scheduled( | 28 'properties': api.properties_scheduled( |
23 repository='https://github.com/Polymer/polymer'), | 29 repository='https://github.com/Polymer/polymer'), |
24 } | 30 } |
OLD | NEW |