forked from DaveWoodCom/XCGLogger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up/improve testing, fix Travis script
- Loading branch information
1 parent
da3699e
commit 275a904
Showing
23 changed files
with
643 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,51 @@ | ||
language: objective-c | ||
xcode_project: XCGLogger/Library/XCGLogger.xcodeproj | ||
xcode_scheme: XCGLogger (iOS) | ||
osx_image: xcode7.3 | ||
xcode_sdk: iphonesimulator9.3 | ||
env: | ||
global: | ||
- LC_CTYPE=en_US.UTF-8 | ||
- LANG=en_US.UTF-8 | ||
- LIB_PROJECT=XCGLogger/Library/XCGLogger.xcodeproj | ||
- IOSDEMO_PROJECT=XCGLogger/DemoApps/iOS/iOSDemo/iOSDemo.xcodeproj | ||
- OSXDEMO_PROJECT=XCGLogger/DemoApps/OSX/OSXDemo/OSXDemo.xcodeproj | ||
- TVOSDEMO_PROJECT=XCGLogger/DemoApps/tvOS/tvOSDemo/tvOSDemo.xcodeproj | ||
- IOS_FRAMEWORK_SCHEME="XCGLogger (iOS)" | ||
- OSX_FRAMEWORK_SCHEME="XCGLogger (OS X)" | ||
- TVOS_FRAMEWORK_SCHEME="XCGLogger (tvOS)" | ||
- WATCHOS_FRAMEWORK_SCHEME="XCGLogger (watchOS)" | ||
- IOS_SDK=iphonesimulator9.3 | ||
- OSX_SDK=macosx10.11 | ||
- TVOS_SDK=appletvsimulator9.2 | ||
- WATCHOS_SDK=watchsimulator2.2 | ||
- IOS_EXAMPLE_SCHEME="iOSDemo" | ||
- OSX_EXAMPLE_SCHEME="OSXDemo" | ||
- TVOS_EXAMPLE_SCHEME="tvOSDemo" | ||
matrix: | ||
- POD_LINT="YES" | ||
- PROJECT_FILE="$LIB_PROJECT" DESTINATION="OS=9.3,name=iPhone 6S" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean test build" | ||
- PROJECT_FILE="$LIB_PROJECT" DESTINATION="arch=x86_64" SCHEME="$OSX_FRAMEWORK_SCHEME" SDK="$OSX_SDK" POD_LINT="NO" BUILDCMD="clean test build" | ||
- PROJECT_FILE="$LIB_PROJECT" DESTINATION="OS=9.2,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" POD_LINT="NO" BUILDCMD="clean test build" | ||
- PROJECT_FILE="$LIB_PROJECT" DESTINATION="OS=2.2,name=Apple Watch - 42mm" SCHEME="$WATCHOS_FRAMEWORK_SCHEME" SDK="$WATCHOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$IOSDEMO_PROJECT" DESTINATION="OS=8.1,name=iPhone 5" SCHEME="$IOS_EXAMPLE_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$IOSDEMO_PROJECT" DESTINATION="OS=8.2,name=iPhone 5S" SCHEME="$IOS_EXAMPLE_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$IOSDEMO_PROJECT" DESTINATION="OS=8.3,name=iPhone 6" SCHEME="$IOS_EXAMPLE_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$IOSDEMO_PROJECT" DESTINATION="OS=8.4,name=iPad Retina" SCHEME="$IOS_EXAMPLE_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$IOSDEMO_PROJECT" DESTINATION="OS=9.0,name=iPhone 6 Plus" SCHEME="$IOS_EXAMPLE_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$IOSDEMO_PROJECT" DESTINATION="OS=9.1,name=iPhone 6S" SCHEME="$IOS_EXAMPLE_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$IOSDEMO_PROJECT" DESTINATION="OS=9.2,name=iPhone 6S Plus" SCHEME="$IOS_EXAMPLE_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$IOSDEMO_PROJECT" DESTINATION="OS=9.3,name=iPad Retina" SCHEME="$IOS_EXAMPLE_SCHEME" SDK="$IOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$OSXDEMO_PROJECT" DESTINATION="arch=x86_64" SCHEME="$OSX_EXAMPLE_SCHEME" SDK="$OSX_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
- PROJECT_FILE="$TVOSDEMO_PROJECT" DESTINATION="OS=9.2,name=Apple TV 1080p" SCHEME="$TVOS_EXAMPLE_SCHEME" SDK="$TVOS_SDK" POD_LINT="NO" BUILDCMD="clean build" | ||
before_install: | ||
- brew uninstall xctool && brew install --HEAD xctool | ||
- brew update | ||
script: | ||
- set -o pipefail | ||
- xcodebuild -version | ||
- xcodebuild -showsdks | ||
|
||
- if [ $POD_LINT == "YES" ]; then pod lib lint; fi | ||
- if [ $POD_LINT == "NO" ]; then xcodebuild -UseSanitizedBuildSystemEnvironment=YES -project "$PROJECT_FILE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES $BUILDCMD | xcpretty -c; fi | ||
- if [ $POD_LINT == "NO" ]; then xcodebuild -UseSanitizedBuildSystemEnvironment=YES -project "$PROJECT_FILE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES $BUILDCMD | xcpretty -c; fi | ||
|
||
# Can't specify the SDK or the watchOS builds will fail with: target specifies product type 'com.apple.product-type.watchkit2-extension', but there's no such product type for the 'iphonesimulator' platform | ||
# - xcodebuild -UseSanitizedBuildSystemEnvironment=YES -project "$PROJECT_FILE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES $BUILDCMD; | ||
# - xcodebuild -UseSanitizedBuildSystemEnvironment=YES -project "$PROJECT_FILE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES $BUILDCMD; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
XCGLogger/DemoApps/OSX/OSXDemo/OSXDemo.xcodeproj/xcshareddata/xcschemes/OSXDemo.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "0730" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "555FFCAC19D77B1800F62246" | ||
BuildableName = "OSXDemo.app" | ||
BlueprintName = "OSXDemo" | ||
ReferencedContainer = "container:OSXDemo.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "NO" | ||
buildForArchiving = "NO" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "555FFCBC19D77B1800F62246" | ||
BuildableName = "OSXDemoTests.xctest" | ||
BlueprintName = "OSXDemoTests" | ||
ReferencedContainer = "container:OSXDemo.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "555FFCBC19D77B1800F62246" | ||
BuildableName = "OSXDemoTests.xctest" | ||
BlueprintName = "OSXDemoTests" | ||
ReferencedContainer = "container:OSXDemo.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "555FFCAC19D77B1800F62246" | ||
BuildableName = "OSXDemo.app" | ||
BlueprintName = "OSXDemo" | ||
ReferencedContainer = "container:OSXDemo.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "555FFCAC19D77B1800F62246" | ||
BuildableName = "OSXDemo.app" | ||
BlueprintName = "OSXDemo" | ||
ReferencedContainer = "container:OSXDemo.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
</AdditionalOptions> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "555FFCAC19D77B1800F62246" | ||
BuildableName = "OSXDemo.app" | ||
BlueprintName = "OSXDemo" | ||
ReferencedContainer = "container:OSXDemo.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.