Skip to content

Commit

Permalink
Update slather yml to reflect new project structure
Browse files Browse the repository at this point in the history
Re-enable code-coverage in xcodeproj
  • Loading branch information
JP Wright committed Feb 28, 2017
1 parent a909f8a commit 9f20e77
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .slather.yml
@@ -1,3 +1,4 @@
coverage_service: coveralls
workspace: Contentful.xcworkspace
scheme: Contentful
xcodeproj: Contentful.xcodeproj
scheme: "Contentful_iOS"

18 changes: 18 additions & 0 deletions Contentful.xcodeproj/project.pbxproj
Expand Up @@ -702,6 +702,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
Expand Down Expand Up @@ -753,6 +754,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
Expand Down Expand Up @@ -782,6 +784,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = NO;
SDKROOT = iphoneos;
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down Expand Up @@ -810,6 +813,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_iOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.contentful.Contentful;
PRODUCT_NAME = Contentful;
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -837,6 +841,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_iOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = com.contentful.Contentful;
PRODUCT_NAME = Contentful;
SKIP_INSTALL = YES;
Expand All @@ -856,6 +861,7 @@
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(FRAMEWORK_SEARCH_PATHS) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
OTHER_SWIFT_FLAGS = "-D DEBUG";
PRODUCT_BUNDLE_IDENTIFIER = com.contentful.ContentfulTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -900,6 +906,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_watchOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-watchOS";
PRODUCT_NAME = Contentful;
SDKROOT = watchos;
Expand Down Expand Up @@ -929,6 +936,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_watchOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-watchOS";
PRODUCT_NAME = Contentful;
SDKROOT = watchos;
Expand Down Expand Up @@ -958,6 +966,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_tvOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-tvOS";
PRODUCT_NAME = Contentful;
SDKROOT = appletvos;
Expand Down Expand Up @@ -987,6 +996,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_tvOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-tvOS";
PRODUCT_NAME = Contentful;
SDKROOT = appletvos;
Expand Down Expand Up @@ -1019,6 +1029,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-macOS";
PRODUCT_NAME = Contentful;
SDKROOT = macosx;
Expand Down Expand Up @@ -1049,6 +1060,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-macOS";
PRODUCT_NAME = Contentful;
SDKROOT = macosx;
Expand All @@ -1064,6 +1076,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_CODE_COVERAGE = YES;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
Expand Down Expand Up @@ -1128,6 +1141,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_iOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.contentful.Contentful;
PRODUCT_NAME = Contentful;
SKIP_INSTALL = YES;
Expand All @@ -1147,6 +1161,7 @@
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
INFOPLIST_FILE = Tests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(FRAMEWORK_SEARCH_PATHS) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
OTHER_SWIFT_FLAGS = "-D API_COVERAGE";
PRODUCT_BUNDLE_IDENTIFIER = com.contentful.ContentfulTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -1172,6 +1187,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_watchOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-watchOS";
PRODUCT_NAME = Contentful;
SDKROOT = watchos;
Expand Down Expand Up @@ -1201,6 +1217,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info_tvOS.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-tvOS";
PRODUCT_NAME = Contentful;
SDKROOT = appletvos;
Expand Down Expand Up @@ -1233,6 +1250,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.contentful.Contentful-macOS";
PRODUCT_NAME = Contentful;
SDKROOT = macosx;
Expand Down
Expand Up @@ -10,7 +10,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Expand Up @@ -26,7 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
Expand Up @@ -26,7 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
</Testables>
<AdditionalOptions>
Expand Down
Expand Up @@ -26,7 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
</Testables>
<AdditionalOptions>
Expand Down
Expand Up @@ -26,7 +26,8 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
</Testables>
<AdditionalOptions>
Expand Down
2 changes: 1 addition & 1 deletion Scripts/travis-build-test.sh
Expand Up @@ -10,5 +10,5 @@ rm -rf ${HOME}/Library/Developer/Xcode/DerivedData/*
# `sysctl -n hw.ncpu` -- fetch number of 'logical' cores in macOS machine
xcodebuild -jobs `sysctl -n hw.ncpu` test -project Contentful.xcodeproj -scheme Contentful_iOS \
-sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 6s,OS=9.3" \
ONLY_ACTIVE_ARCH=NO CODE_SIGNING_IDENTITY="" CODE_SIGNING_REQUIRED=NO OTHER_SWIFT_FLAGS="-warnings-as-errors" | xcpretty -c
ONLY_ACTIVE_ARCH=YES CODE_SIGNING_IDENTITY="" CODE_SIGNING_REQUIRED=NO OTHER_SWIFT_FLAGS="-warnings-as-errors" | xcpretty -c

0 comments on commit 9f20e77

Please sign in to comment.