• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [
4      "python",
5      "-u",
6      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
7      "--json-output",
8      "/path/to/tmp/json",
9      "copy",
10      "[START_DIR]/cache/work/skia/infra/bots/assets/android_ndk_linux/VERSION",
11      "/path/to/tmp/"
12    ],
13    "infra_step": true,
14    "name": "Get android_ndk_linux VERSION"
15  },
16  {
17    "cmd": [
18      "python",
19      "-u",
20      "[START_DIR]/cache/work/skia/bin/fetch-gn"
21    ],
22    "cwd": "[START_DIR]/cache/work/skia",
23    "env": {
24      "CHROME_HEADLESS": "1",
25      "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
26    },
27    "infra_step": true,
28    "name": "fetch-gn"
29  },
30  {
31    "cmd": [
32      "go",
33      "build",
34      "-o",
35      "[START_DIR]/cache/work/skia/out/Test-Debian9-Clang-GCE-CPU-AVX2-universal-devrel-All-Android_SKQP/devrel/run_testlab",
36      "[START_DIR]/cache/work/skia/infra/cts/run_testlab.go"
37    ],
38    "cwd": "[START_DIR]/cache/work/skia",
39    "env": {
40      "CHROME_HEADLESS": "1",
41      "GOCACHE": "[START_DIR]/cache/go_cache",
42      "GOPATH": "[START_DIR]/go_deps",
43      "GOROOT": "[START_DIR]/go/go",
44      "PATH": "[START_DIR]/go/go/bin:[START_DIR]/go_deps/bin:<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
45    },
46    "name": "build firebase runner"
47  },
48  {
49    "cmd": [
50      "[START_DIR]/cache/work/skia/tools/skqp/make_universal_apk"
51    ],
52    "cwd": "[START_DIR]/cache/work/skia",
53    "env": {
54      "ANDROID_HOME": "[START_DIR]/android_sdk_linux/android-sdk",
55      "ANDROID_NDK": "[START_DIR]/android_ndk_linux",
56      "APK_OUTPUT_DIR": "[START_DIR]/cache/work/skia/out/Test-Debian9-Clang-GCE-CPU-AVX2-universal-devrel-All-Android_SKQP/devrel",
57      "CHROME_HEADLESS": "1",
58      "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
59    },
60    "name": "make_universal"
61  },
62  {
63    "cmd": [
64      "python",
65      "-u",
66      "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\n\ntry:\n  os.makedirs(dst)\nexcept OSError as e:\n  if e.errno != errno.EEXIST:\n    raise\n\nfor pattern in build_products_whitelist:\n  path = os.path.join(src, pattern)\n  for f in glob.glob(path):\n    dst_path = os.path.join(dst, os.path.relpath(f, src))\n    if not os.path.isdir(os.path.dirname(dst_path)):\n      os.makedirs(os.path.dirname(dst_path))\n    print 'Copying build product %s to %s' % (f, dst_path)\n    shutil.move(f, dst_path)\n",
67      "[START_DIR]/cache/work/skia/out/Test-Debian9-Clang-GCE-CPU-AVX2-universal-devrel-All-Android_SKQP/devrel",
68      "[START_DIR]/[SWARM_OUT_DIR]/out/devrel"
69    ],
70    "infra_step": true,
71    "name": "copy build products",
72    "~followup_annotations": [
73      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
74      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
75      "@@@STEP_LOG_LINE@python.inline@import os@@@",
76      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
77      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
78      "@@@STEP_LOG_LINE@python.inline@@@@",
79      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
80      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
81      "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@",
82      "@@@STEP_LOG_LINE@python.inline@@@@",
83      "@@@STEP_LOG_LINE@python.inline@try:@@@",
84      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
85      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
86      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
87      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
88      "@@@STEP_LOG_LINE@python.inline@@@@",
89      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
90      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
91      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
92      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
93      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
94      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
95      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
96      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
97      "@@@STEP_LOG_END@python.inline@@@"
98    ]
99  },
100  {
101    "jsonResult": null,
102    "name": "$result"
103  }
104]