aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--build-mac/mailcore2.xcodeproj/xcshareddata/xcschemes/unittest.xcscheme96
-rwxr-xr-xscripts/travis/script.sh32
2 files changed, 115 insertions, 13 deletions
diff --git a/build-mac/mailcore2.xcodeproj/xcshareddata/xcschemes/unittest.xcscheme b/build-mac/mailcore2.xcodeproj/xcshareddata/xcschemes/unittest.xcscheme
new file mode 100644
index 00000000..e90e0367
--- /dev/null
+++ b/build-mac/mailcore2.xcodeproj/xcshareddata/xcschemes/unittest.xcscheme
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0600"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "NO"
+ buildForArchiving = "NO"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C6B5AE0119F630B3001352A6"
+ BuildableName = "unittest.xctest"
+ BlueprintName = "unittest"
+ ReferencedContainer = "container:mailcore2.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Release">
+ <Testables>
+ <TestableReference
+ skipped = "NO">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C6B5AE0119F630B3001352A6"
+ BuildableName = "unittest.xctest"
+ BlueprintName = "unittest"
+ ReferencedContainer = "container:mailcore2.xcodeproj">
+ </BuildableReference>
+ </TestableReference>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C6B5AE0119F630B3001352A6"
+ BuildableName = "unittest.xctest"
+ BlueprintName = "unittest"
+ ReferencedContainer = "container:mailcore2.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C6B5AE0119F630B3001352A6"
+ BuildableName = "unittest.xctest"
+ BlueprintName = "unittest"
+ ReferencedContainer = "container:mailcore2.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "C6B5AE0119F630B3001352A6"
+ BuildableName = "unittest.xctest"
+ BlueprintName = "unittest"
+ ReferencedContainer = "container:mailcore2.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/scripts/travis/script.sh b/scripts/travis/script.sh
index 3473452b..9d52ae19 100755
--- a/scripts/travis/script.sh
+++ b/scripts/travis/script.sh
@@ -1,33 +1,39 @@
#!/bin/sh
set -e
+IPHONESDK=iphoneos8.0
+SIMULATORSDK=iphonesimulator8.0
+MACSDK=macosx10.9
+
echo Operating system:
uname
-mkdir -p Externals/prebuilt
-cd Externals/prebuilt
-git clone --depth=1 https://github.com/MailCore/mailcore2-deps
-cd ../..
-cp Externals/prebuilt/mailcore2-deps/prebuilt.list scripts/prebuilt.list
-mkdir -p Externals/builds/builds
-rsync --exclude=.git -av Externals/prebuilt/mailcore2-deps/ Externals/builds/builds/
+# mkdir -p Externals/prebuilt
+# cd Externals/prebuilt
+# git clone --depth=1 https://github.com/MailCore/mailcore2-deps
+# cd ../..
+# cp Externals/prebuilt/mailcore2-deps/prebuilt.list scripts/prebuilt.list
+# mkdir -p Externals/builds/builds
+# rsync --exclude=.git -av Externals/prebuilt/mailcore2-deps/ Externals/builds/builds/
if test x"`uname`" = xDarwin ; then
echo Building library for iPhoneOS
- xctool -project build-mac/mailcore2.xcodeproj -sdk iphoneos8.0 -scheme "static mailcore2 ios" build ARCHS="armv7 armv7s arm64"
+ xctool -project build-mac/mailcore2.xcodeproj -sdk $IPHONESDK -scheme "static mailcore2 ios" build ARCHS="armv7 armv7s arm64"
echo Building library for iPhoneSimulator
- xctool -project build-mac/mailcore2.xcodeproj -sdk iphonesimulator8.0 -scheme "static mailcore2 ios" build ARCHS="i386 x86_64"
+ xctool -project build-mac/mailcore2.xcodeproj -sdk $SIMULATORSDK -scheme "static mailcore2 ios" build ARCHS="i386 x86_64"
#echo Link test for iPhoneOS
#xcodebuild -project build-mac/mailcore2.xcodeproj -sdk iphoneos7.1 -target "test-ios" CODE_SIGN_IDENTITY="" build
echo Link test for iPhoneSimulator
- xctool -project build-mac/mailcore2.xcodeproj -sdk iphonesimulator8.0 -scheme "test-ios" build ARCHS="i386 x86_64"
+ xctool -project build-mac/mailcore2.xcodeproj -sdk $SIMULATORSDK -scheme "test-ios" build ARCHS="i386 x86_64"
echo Building library for Mac
- xctool -project build-mac/mailcore2.xcodeproj -sdk macosx10.9 -scheme "static mailcore2 osx" build
+ xctool -project build-mac/mailcore2.xcodeproj -sdk $MACSDK -scheme "static mailcore2 osx" build
echo Building framework for Mac
- xctool -project build-mac/mailcore2.xcodeproj -sdk macosx10.9 -scheme "mailcore osx" build
+ xctool -project build-mac/mailcore2.xcodeproj -sdk $MACSDK -scheme "mailcore osx" build
echo Link test for Mac
- xctool -project build-mac/mailcore2.xcodeproj -sdk macosx10.9 -scheme "tests" build
+ xctool -project build-mac/mailcore2.xcodeproj -sdk $MACSDK -scheme "tests" build
+ echo Unit Tests for Mac
+ xctool -project build-mac/mailcore2.xcodeproj -sdk $MACSDK -scheme "unittest" test
fi
echo Testing CMake build