travis for tvOS
This commit is contained in:
parent
27cf1ec538
commit
708a2c76d8
23
.travis.yml
23
.travis.yml
@ -15,6 +15,22 @@ matrix:
|
||||
env: SDK="macosx"
|
||||
DEVICE="OS X 10.11"
|
||||
|
||||
- osx_image: xcode9
|
||||
env: SDK="appletvsimulator"
|
||||
DEVICE="Apple TV 4K (11.0)" # oldest/newest for tvOS 11.x
|
||||
|
||||
- osx_image: xcode8.3
|
||||
env: SDK="appletvsimulator"
|
||||
DEVICE="Apple TV 1080p (10.2)" # latest for tvOS 10.x
|
||||
|
||||
- osx_image: xcode8.3
|
||||
env: SDK="appletvsimulator"
|
||||
DEVICE="Apple TV 1080p (9.2)" # latest for tvOS 9.x
|
||||
|
||||
- osx_image: xcode7.3
|
||||
env: SDK="appletvsimulator"
|
||||
DEVICE="Apple TV 1080p (9.0)" # oldest for tvOS 9.x
|
||||
|
||||
- osx_image: xcode9
|
||||
env: SDK="iphonesimulator"
|
||||
DEVICE="iPhone X (11.0)" # oldest/newest for iOS 11.x
|
||||
@ -46,9 +62,14 @@ matrix:
|
||||
before_install:
|
||||
- if [ ${SDK} = "macosx" ]; then
|
||||
SCHEME="ObjectiveCExample_macOS";
|
||||
DESTINATION="platform=macosx";
|
||||
elif [ ${SDK} = "appletvsimulator" ]; then
|
||||
SCHEME="ObjectiveCExample_tvOS";
|
||||
else
|
||||
SCHEME="ObjectiveCExample_iOS";
|
||||
fi
|
||||
- if [ ${SDK} = "macosx" ]; then
|
||||
DESTINATION="platform=macosx";
|
||||
else
|
||||
DESTINATION_UDID=$(instruments -s devices | grep "$DEVICE \[" | sed -E 's/.*\[([0-9A-F-]+)\].*/\1/g');
|
||||
`Prelaunching simulator to avoid timeout https://github.com/travis-ci/travis-ci/issues/6422`
|
||||
open -a Simulator --args -CurrentDeviceUDID $DESTINATION_UDID;
|
||||
|
Loading…
Reference in New Issue
Block a user