OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 = [ | 5 DEPS = [ |
6 'git', | 6 'git', |
7 'path', | 7 'path', |
8 ] | 8 ] |
9 | 9 |
10 | 10 |
11 def GenSteps(api): | 11 def GenSteps(api): |
12 url = 'https://chromium.googlesource.com/chromium/src.git' | 12 url = 'https://chromium.googlesource.com/chromium/src.git' |
13 | 13 |
14 # You can use api.git.checkout to perform all the steps of a safe checkout. | 14 # You can use api.git.checkout to perform all the steps of a safe checkout. |
15 yield api.git.checkout(url, recursive=True) | 15 yield api.git.checkout(url, recursive=True) |
16 | 16 |
17 # If you need to run more arbitrary git commands, you can use api.git.command, | 17 # If you need to run more arbitrary git commands, you can use api.git.command, |
18 # which behaves like api.step(), but automatically sets the name of the step. | 18 # which behaves like api.step(), but automatically sets the name of the step. |
19 yield api.git.command('status', cwd=api.path.checkout()) | 19 yield api.git.command('status', cwd=api.path.checkout()) |
20 | 20 |
21 | 21 |
22 def GenTests(_api): | 22 def GenTests(api): |
23 yield 'basic', {} | 23 yield api.Test('basic') |
OLD | NEW |