Home | History | Annotate | Download | only in full.expected
      1 [
      2   {
      3     "cmd": [],
      4     "name": "ensure xcode",
      5     "~followup_annotations": [
      6       "@@@STEP_TEXT@Ensuring Xcode version 9c40b in [START_DIR]/cache/Xcode.app@@@"
      7     ]
      8   },
      9   {
     10     "cmd": [
     11       "[START_DIR]/mac_toolchain/mac_toolchain",
     12       "install",
     13       "-kind",
     14       "ios",
     15       "-xcode-version",
     16       "9c40b",
     17       "-output-dir",
     18       "[START_DIR]/cache/Xcode.app"
     19     ],
     20     "name": "ensure xcode.install xcode",
     21     "~followup_annotations": [
     22       "@@@STEP_NEST_LEVEL@1@@@"
     23     ]
     24   },
     25   {
     26     "cmd": [
     27       "sudo",
     28       "xcode-select",
     29       "-switch",
     30       "[START_DIR]/cache/Xcode.app"
     31     ],
     32     "name": "ensure xcode.select xcode",
     33     "~followup_annotations": [
     34       "@@@STEP_NEST_LEVEL@1@@@"
     35     ]
     36   },
     37   {
     38     "cmd": [
     39       "python",
     40       "-u",
     41       "[START_DIR]/cache/work/skia/tools/build_command_buffer.py",
     42       "--chrome-dir",
     43       "[START_DIR]/cache/work",
     44       "--output-dir",
     45       "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug",
     46       "--no-sync",
     47       "--no-hooks",
     48       "--make-output-dir"
     49     ],
     50     "env": {
     51       "CHROME_HEADLESS": "1",
     52       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
     53     },
     54     "name": "build command_buffer"
     55   },
     56   {
     57     "cmd": [
     58       "python",
     59       "-u",
     60       "[START_DIR]/cache/work/skia/bin/fetch-gn"
     61     ],
     62     "cwd": "[START_DIR]/cache/work/skia",
     63     "env": {
     64       "CHROME_HEADLESS": "1",
     65       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
     66     },
     67     "infra_step": true,
     68     "name": "fetch-gn"
     69   },
     70   {
     71     "cmd": [
     72       "[START_DIR]/cache/work/skia/bin/gn",
     73       "gen",
     74       "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug",
     75       "--args=cc=\"clang\" cxx=\"clang++\" extra_cflags=[\"-DDUMMY_xcode_build_version=9c40b\", \"-O1\"] target_cpu=\"x86_64\""
     76     ],
     77     "cwd": "[START_DIR]/cache/work/skia",
     78     "env": {
     79       "CHROME_HEADLESS": "1",
     80       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
     81     },
     82     "name": "gn gen"
     83   },
     84   {
     85     "cmd": [
     86       "ninja",
     87       "-C",
     88       "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug"
     89     ],
     90     "cwd": "[START_DIR]/cache/work/skia",
     91     "env": {
     92       "CHROME_HEADLESS": "1",
     93       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
     94     },
     95     "name": "ninja"
     96   },
     97   {
     98     "cmd": [
     99       "python",
    100       "-u",
    101       "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",
    102       "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-CommandBuffer/Debug",
    103       "[START_DIR]/[SWARM_OUT_DIR]/out/Debug"
    104     ],
    105     "infra_step": true,
    106     "name": "copy build products",
    107     "~followup_annotations": [
    108       "@@@STEP_LOG_LINE (a] python.inline@import errno@@@",
    109       "@@@STEP_LOG_LINE (a] python.inline@import glob@@@",
    110       "@@@STEP_LOG_LINE (a] python.inline@import os@@@",
    111       "@@@STEP_LOG_LINE (a] python.inline@import shutil@@@",
    112       "@@@STEP_LOG_LINE (a] python.inline@import sys@@@",
    113       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    114       "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1]@@@",
    115       "@@@STEP_LOG_LINE (a] python.inline@dst = sys.argv[2]@@@",
    116       "@@@STEP_LOG_LINE (a] 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']@@@",
    117       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    118       "@@@STEP_LOG_LINE (a] python.inline@try:@@@",
    119       "@@@STEP_LOG_LINE (a] python.inline@  os.makedirs(dst)@@@",
    120       "@@@STEP_LOG_LINE (a] python.inline@except OSError as e:@@@",
    121       "@@@STEP_LOG_LINE (a] python.inline@  if e.errno != errno.EEXIST:@@@",
    122       "@@@STEP_LOG_LINE (a] python.inline@    raise@@@",
    123       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    124       "@@@STEP_LOG_LINE (a] python.inline@for pattern in build_products_whitelist:@@@",
    125       "@@@STEP_LOG_LINE (a] python.inline@  path = os.path.join(src, pattern)@@@",
    126       "@@@STEP_LOG_LINE (a] python.inline@  for f in glob.glob(path):@@@",
    127       "@@@STEP_LOG_LINE (a] python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
    128       "@@@STEP_LOG_LINE (a] python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
    129       "@@@STEP_LOG_LINE (a] python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
    130       "@@@STEP_LOG_LINE (a] python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
    131       "@@@STEP_LOG_LINE (a] python.inline@    shutil.move(f, dst_path)@@@",
    132       "@@@STEP_LOG_END (a] python.inline@@@"
    133     ]
    134   },
    135   {
    136     "jsonResult": null,
    137     "name": "$result"
    138   }
    139 ]