#!/bin/sh

if [ -z $1 ]; then
  echo "usage: build.sh <subcommand>"
  echo "available subcommands:"
  echo "  ci"
  exit
fi

set -eu

MODE=$1

function ci() {
  xctool \
      -workspace WebDriverAgent.xcworkspace \
      -scheme $1 \
      -sdk $2 \
      $3 \
      CODE_SIGN_IDENTITY="" \
      CODE_SIGNING_REQUIRED=NO
}

if [ "$MODE" = "ci" ]; then
  ci WebDriverAgent iphonesimulator build
  ci XCTUITestRunner iphonesimulator build-tests
  ci XCTUITestRunner iphoneos build-tests
fi

#!/bin/sh

if [ -z $1 ]; then
  echo "usage: build.sh <subcommand>"
  echo "available subcommands:"
  echo "  ci"
  exit
fi

set -eu

MODE=$1

function ci() {
  xctool \
      -workspace WebDriverAgent.xcworkspace \
      -scheme $1 \
      -sdk $2 \
      $3 \
      CODE_SIGN_IDENTITY="" \
      CODE_SIGNING_REQUIRED=NO
}

if [ "$MODE" = "ci" ]; then
  ci WebDriverAgent iphonesimulator build
  ci XCTUITestRunner iphonesimulator build-tests
  ci XCTUITestRunner iphoneos build-tests
fi


Revert "Repo sync commit for bot"
Revert "Repo sync commit for bot"

This reverts commit 86afbe176393eae3a78026c8349304642df3d023.
