2016-10-06 10:16:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
2017-04-27 16:05:22 +00:00
|
|
|
# Script used to run tvOS tests.
|
|
|
|
# If not arguments are passed to the script, it will only compile
|
|
|
|
# the UIExplorer.
|
|
|
|
# If the script is called with a single argument "test", we'll
|
|
|
|
# also run the UIExplorer integration test (needs JS and packager):
|
|
|
|
# ./objc-test-tvos.sh test
|
|
|
|
|
2016-10-06 10:16:41 +00:00
|
|
|
SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2017-03-31 19:40:36 +00:00
|
|
|
ROOT=$(dirname "$SCRIPTS")
|
2016-10-06 10:16:41 +00:00
|
|
|
|
2017-03-31 19:40:36 +00:00
|
|
|
cd "$ROOT"
|
2016-10-06 10:16:41 +00:00
|
|
|
|
2017-03-31 19:40:36 +00:00
|
|
|
SCHEME="UIExplorer-tvOS"
|
|
|
|
SDK="appletvsimulator"
|
|
|
|
DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p,OS=10.1"
|
2017-03-06 22:10:07 +00:00
|
|
|
|
2017-04-27 16:05:22 +00:00
|
|
|
# If there's a "test" argument, pass it to the test script.
|
|
|
|
. ./scripts/objc-test.sh $1
|
2017-03-06 22:10:07 +00:00
|
|
|
|