async function setup()

in robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts [89:105]


 async function setup() {
  if (!fs.existsSync("/etc/timezone")) {
    //default to US Pacific if timezone is not set.
    const timezone = "US/Pacific";
    await exec.exec("bash", ["-c", `ln -snf /usr/share/zoneinfo/${timezone} /etc/localtime`]);
    await exec.exec("bash" , ["-c", `echo ${timezone} > /etc/timezone`]);
  }
  await exec.exec("bash", ["-c", `scripts/setup.sh --install-ros ${ROS_DISTRO}`], getWorkingDirParentExecOptions());
  await loadROSEnvVariables();
  await exec.exec("apt-get", ["update"]);
  //zip required for prepare_sources step.
  await exec.exec("apt-get", ["install", "-y", "zip"]);

  SAMPLE_APP_VERSION = await getSampleAppVersion();
  console.log(`Sample App version found to be: ${SAMPLE_APP_VERSION}`);
  await fetchRosinstallDependencies();
 }