blob: e6aa96571c38110cbca8ecbd9d3ae3bc0da57a34 [file] [log] [blame]
[
{
"cmd": [
"python",
"-u",
"\nfrom __future__ import print_function\nimport subprocess\nimport sys\n\nwhich = 'where' if sys.platform == 'win32' else 'which'\ngit = subprocess.check_output([which, 'git']).decode('utf-8')\nprint('git was found at %s' % git)\nif 'cipd_bin_packages' not in git:\n print('Git must be obtained through CIPD.', file=sys.stderr)\n sys.exit(1)\n"
],
"env": {
"CHROME_HEADLESS": "1",
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
},
"name": "Assert that Git is from CIPD",
"~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@",
"@@@STEP_LOG_LINE@python.inline@from __future__ import print_function@@@",
"@@@STEP_LOG_LINE@python.inline@import subprocess@@@",
"@@@STEP_LOG_LINE@python.inline@import sys@@@",
"@@@STEP_LOG_LINE@python.inline@@@@",
"@@@STEP_LOG_LINE@python.inline@which = 'where' if sys.platform == 'win32' else 'which'@@@",
"@@@STEP_LOG_LINE@python.inline@git = subprocess.check_output([which, 'git']).decode('utf-8')@@@",
"@@@STEP_LOG_LINE@python.inline@print('git was found at %s' % git)@@@",
"@@@STEP_LOG_LINE@python.inline@if 'cipd_bin_packages' not in git:@@@",
"@@@STEP_LOG_LINE@python.inline@ print('Git must be obtained through CIPD.', file=sys.stderr)@@@",
"@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
"@@@STEP_LOG_END@python.inline@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path",
"[START_DIR]/skia",
"--url",
"https://skia.googlesource.com/skia.git"
],
"name": "git setup"
},
{
"cmd": [
"git",
"fetch",
"origin",
"abc123",
"--progress"
],
"cwd": "[START_DIR]/skia",
"env": {
"PATH": "RECIPE_REPO[depot_tools]:<PATH>"
},
"infra_step": true,
"name": "git fetch"
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[START_DIR]/skia",
"infra_step": true,
"name": "git checkout"
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/skia",
"infra_step": true,
"name": "read revision",
"~followup_annotations": [
"@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/skia",
"infra_step": true,
"name": "git clean"
},
{
"cmd": [
"git",
"fetch",
"origin",
"refs/changes/89/456789/12"
],
"cwd": "[START_DIR]/skia",
"infra_step": true,
"name": "git fetch (2)"
},
{
"cmd": [
"git",
"checkout",
"FETCH_HEAD"
],
"cwd": "[START_DIR]/skia",
"infra_step": true,
"name": "git checkout (2)"
},
{
"cmd": [
"git",
"rebase",
"abc123"
],
"cwd": "[START_DIR]/skia",
"infra_step": true,
"name": "git rebase"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/tmp"
],
"infra_step": true,
"name": "makedirs tmp_dir"
},
{
"name": "$result"
}
]