"name": "generate and upload binary size data"
},
{
- "cmd": [
- "[START_DIR]/go/go/bin/go",
- "get",
- "go.skia.org/infra/comments/go/extract_comments"
- ],
- "cwd": "[CUSTOM_/_B_WORK]/skia",
- "env": {
- "BUILDTYPE": "Release",
- "CHROME_HEADLESS": "1",
- "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
- "GIT_HTTP_LOW_SPEED_TIME": "300",
- "GOPATH": "[START_DIR]/tmp/golib",
- "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
- "SKIA_OUT": "[START_DIR]/out"
- },
- "name": "compile extract_comments"
- },
- {
- "cmd": [
- "[START_DIR]/tmp/golib/bin/extract_comments",
- "--dir",
- "gm",
- "--dest",
- "gs://skia-doc/gm/comments.json"
- ],
- "cwd": "[CUSTOM_/_B_WORK]/skia",
- "env": {
- "BUILDTYPE": "Release",
- "CHROME_HEADLESS": "1",
- "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
- "GIT_HTTP_LOW_SPEED_TIME": "300",
- "GOPATH": "[START_DIR]/tmp/golib",
- "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
- "SKIA_OUT": "[START_DIR]/out"
- },
- "name": "run extract_comments"
- },
- {
"name": "$result",
"recipe_result": null,
"status_code": 0
"name": "generate and upload binary size data"
},
{
- "cmd": [
- "[START_DIR]/go/go/bin/go",
- "get",
- "go.skia.org/infra/comments/go/extract_comments"
- ],
- "cwd": "[CUSTOM_/_B_WORK]/skia",
- "env": {
- "BUILDTYPE": "Release",
- "CHROME_HEADLESS": "1",
- "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
- "GIT_HTTP_LOW_SPEED_TIME": "300",
- "GOPATH": "[START_DIR]/tmp/golib",
- "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
- "SKIA_OUT": "[START_DIR]/out"
- },
- "name": "compile extract_comments"
- },
- {
- "cmd": [
- "[START_DIR]/tmp/golib/bin/extract_comments",
- "--dir",
- "gm",
- "--dest",
- "gs://skia-doc/gm/comments.json"
- ],
- "cwd": "[CUSTOM_/_B_WORK]/skia",
- "env": {
- "BUILDTYPE": "Release",
- "CHROME_HEADLESS": "1",
- "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
- "GIT_HTTP_LOW_SPEED_TIME": "300",
- "GOPATH": "[START_DIR]/tmp/golib",
- "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
- "SKIA_OUT": "[START_DIR]/out"
- },
- "name": "run extract_comments"
- },
- {
"name": "$result",
"recipe_result": null,
"status_code": 0
cwd=cwd,
abort_on_failure=False)
- env = {}
- env['GOPATH'] = api.vars.tmp_dir.join('golib')
- extractexe = env['GOPATH'].join('bin', 'extract_comments')
- goexe = api.vars.slave_dir.join('go', 'go', 'bin', 'go')
-
- # Compile extract_comments.
- api.run(
- api.step,
- 'compile extract_comments',
- cmd=[goexe, 'get', 'go.skia.org/infra/comments/go/extract_comments'],
- cwd=cwd,
- env=env,
- abort_on_failure=True)
-
- # Run extract_comments on the gm directory.
- api.run(
- api.step,
- 'run extract_comments',
- cmd=[extractexe, '--dir', 'gm', '--dest', 'gs://skia-doc/gm/comments.json'],
- cwd=cwd,
- env=env,
- abort_on_failure=True)
-
def GenTests(api):
yield (