• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [
4      "python",
5      "-u",
6      "\nfrom __future__ import print_function\nimport subprocess\nimport sys\n\nwhich = 'where' if sys.platform == 'win32' else 'which'\ngit = subprocess.check_output([which, 'git'])\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"
7    ],
8    "env": {
9      "CHROME_HEADLESS": "1",
10      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
11    },
12    "name": "Assert that Git is from CIPD",
13    "~followup_annotations": [
14      "@@@STEP_LOG_LINE@python.inline@@@@",
15      "@@@STEP_LOG_LINE@python.inline@from __future__ import print_function@@@",
16      "@@@STEP_LOG_LINE@python.inline@import subprocess@@@",
17      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
18      "@@@STEP_LOG_LINE@python.inline@@@@",
19      "@@@STEP_LOG_LINE@python.inline@which = 'where' if sys.platform == 'win32' else 'which'@@@",
20      "@@@STEP_LOG_LINE@python.inline@git = subprocess.check_output([which, 'git'])@@@",
21      "@@@STEP_LOG_LINE@python.inline@print('git was found at %s' % git)@@@",
22      "@@@STEP_LOG_LINE@python.inline@if 'cipd_bin_packages' not in git:@@@",
23      "@@@STEP_LOG_LINE@python.inline@  print('Git must be obtained through CIPD.', file=sys.stderr)@@@",
24      "@@@STEP_LOG_LINE@python.inline@  sys.exit(1)@@@",
25      "@@@STEP_LOG_END@python.inline@@@"
26    ]
27  },
28  {
29    "cmd": [
30      "python",
31      "-u",
32      "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
33      "--path",
34      "[START_DIR]/skia",
35      "--url",
36      "https://skia.googlesource.com/skia.git"
37    ],
38    "name": "git setup"
39  },
40  {
41    "cmd": [
42      "git",
43      "fetch",
44      "origin",
45      "abc123",
46      "--progress"
47    ],
48    "cwd": "[START_DIR]/skia",
49    "env": {
50      "PATH": "RECIPE_REPO[depot_tools]:<PATH>"
51    },
52    "infra_step": true,
53    "name": "git fetch"
54  },
55  {
56    "cmd": [
57      "git",
58      "checkout",
59      "-f",
60      "FETCH_HEAD"
61    ],
62    "cwd": "[START_DIR]/skia",
63    "infra_step": true,
64    "name": "git checkout"
65  },
66  {
67    "cmd": [
68      "git",
69      "rev-parse",
70      "HEAD"
71    ],
72    "cwd": "[START_DIR]/skia",
73    "infra_step": true,
74    "name": "read revision",
75    "~followup_annotations": [
76      "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
77    ]
78  },
79  {
80    "cmd": [
81      "git",
82      "clean",
83      "-f",
84      "-d",
85      "-x"
86    ],
87    "cwd": "[START_DIR]/skia",
88    "infra_step": true,
89    "name": "git clean"
90  },
91  {
92    "cmd": [
93      "git",
94      "fetch",
95      "origin",
96      "refs/changes/89/456789/12"
97    ],
98    "cwd": "[START_DIR]/skia",
99    "infra_step": true,
100    "name": "git fetch (2)"
101  },
102  {
103    "cmd": [
104      "git",
105      "checkout",
106      "FETCH_HEAD"
107    ],
108    "cwd": "[START_DIR]/skia",
109    "infra_step": true,
110    "name": "git checkout (2)"
111  },
112  {
113    "cmd": [
114      "git",
115      "rebase",
116      "abc123"
117    ],
118    "cwd": "[START_DIR]/skia",
119    "infra_step": true,
120    "name": "git rebase"
121  },
122  {
123    "cmd": [
124      "vpython",
125      "-u",
126      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
127      "--json-output",
128      "/path/to/tmp/json",
129      "ensure-directory",
130      "--mode",
131      "0777",
132      "[START_DIR]/tmp"
133    ],
134    "infra_step": true,
135    "name": "makedirs tmp_dir"
136  },
137  {
138    "name": "$result"
139  }
140]