Skip to content

Commit

Permalink
FEC-12323 Added tvOS TestApp to be verified in Travis. (#461)
Browse files Browse the repository at this point in the history
Updated travis-build script.
Updated travis osx_image to xcode13.1
  • Loading branch information
x-NR-x authored Jun 14, 2022
1 parent 919d44b commit 231c7d9
Show file tree
Hide file tree
Showing 33 changed files with 843 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: swift
osx_image: xcode12
osx_image: xcode13.1
before_install:
- gem install cocoapods xcpretty
- pod repo update
Expand Down
4 changes: 2 additions & 2 deletions TestApp/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use_frameworks!

def sharedPods
pod 'PlayKit', :path => '..'
pod 'KalturaNetKit'#, :path => '../../netkit-ios'
pod 'PlayKitUtils'#, :path => '../../playkit-ios-utils'
#pod 'KalturaNetKit'#, :path => '../../netkit-ios'
#pod 'PlayKitUtils'#, :path => '../../playkit-ios-utils'
end

target 'TestApp_v4_2' do
Expand Down
4 changes: 2 additions & 2 deletions TestApp/TestApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = X8RDCFJK95;
INFOPLIST_FILE = TestApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -479,7 +479,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = X8RDCFJK95;
INFOPLIST_FILE = TestApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
19 changes: 15 additions & 4 deletions travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,22 @@ keepAlive() {
}

buildiOSApp() {
echo Building the iOS test app
echo Building the iOS TestApp
cd TestApp
pod install --repo-update
pod install
CODE=0
xcodebuild clean build -workspace TestApp.xcworkspace -scheme TestApp_v4_2 -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | tee xcodebuild.log | xcpretty -r html || CODE=$?
xcodebuild clean build -workspace TestApp.xcworkspace -scheme TestApp_v5 -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | tee xcodebuild.log | xcpretty -r html || CODE=$?
xcodebuild clean build -workspace TestApp.xcworkspace -scheme TestApp_v4_2 ONLY_ACTIVE_ARCH=NO -destination 'platform=iOS Simulator,name=iPhone 11' | tee xcodebuild.log | xcpretty -r html || CODE=$?
xcodebuild clean build -workspace TestApp.xcworkspace -scheme TestApp_v5 ONLY_ACTIVE_ARCH=NO -destination 'platform=iOS Simulator,name=iPhone 11' | tee xcodebuild.log | xcpretty -r html || CODE=$?
cd ../
export CODE
}

buildtvOSApp() {
echo Building the tvOS TestApp
cd tvOSTestApp
pod install
CODE=0
xcodebuild clean build -workspace tvOSTestApp.xcworkspace -scheme tvOSTestApp ONLY_ACTIVE_ARCH=NO -destination 'platform=tvOS Simulator,name=Apple TV' | tee xcodebuild.log | xcpretty -r html || CODE=$?
cd ../
export CODE
}
Expand All @@ -37,6 +47,7 @@ if [ "$TRAVIS_EVENT_TYPE" == "cron" ] || [ -n "$TRAVIS_TAG" ]; then
else
# Else just build the test app
buildiOSApp
buildtvOSApp
fi

rm $FLAG # stop keepAlive
10 changes: 10 additions & 0 deletions tvOSTestApp/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Uncomment the next line to define a global platform for your project
platform :tvos, '9.0'

target 'tvOSTestApp' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'PlayKit', :path => '..'

end
Loading

0 comments on commit 231c7d9

Please sign in to comment.