async function prepare_sources()

in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts [107:121]


async function prepare_sources() {
  const sourceIncludes = [
    "robot_ws",
    "simulation_ws",
    "scripts",
    "LICENSE*",
    "NOTICE*",
    "README*",
    "roboMakerSettings.json"
  ];
  
  const sourceIncludesStr = sourceIncludes.join(" ");    
  await exec.exec("bash", ["-c", `zip -r sources.zip ${sourceIncludesStr}`], getWorkingDirParentExecOptions());
  await exec.exec("bash", ["-c", `tar cvzf sources.tar.gz ${sourceIncludesStr}`], getWorkingDirParentExecOptions());
}