[api/swift-3] Fix fastlane script

This commit is contained in:
Pedro Piñera Buendía 2016-09-24 12:37:21 +02:00
parent cf7fb86f44
commit 0415206d15
6 changed files with 13 additions and 27 deletions

View File

@ -6,12 +6,15 @@ target 'SugarRecord_Example' do
pod 'SugarRecord/CoreData', :path => "../"
pod 'SugarRecord/CoreData+iCloud', :path => "../"
pod 'SugarRecord/Realm', :path => "../"
end
target 'SugarRecord_Tests' do
inherit! :search_paths
pod 'Quick', "~> 0.10"
pod 'Nimble', '~> 5.0'
pod "OHHTTPStubs"
pod 'OHHTTPStubs/Swift'
end
target 'SugarRecord_Tests' do
pod 'SugarRecord', :path => "../"
pod 'SugarRecord/CoreData', :path => "../"
pod 'SugarRecord/CoreData+iCloud', :path => "../"
pod 'SugarRecord/Realm', :path => "../"
pod 'Quick', "~> 0.10"
pod 'Nimble', '~> 5.0'
pod "OHHTTPStubs"
pod 'OHHTTPStubs/Swift'
end

View File

@ -60,6 +60,6 @@ SPEC CHECKSUMS:
SnapKit: f818b8326d45b4e1c777d0ab27b5c0a3624bfdeb
SugarRecord: 13f9d029c077dea63c7f7240dd401ac4af15a84c
PODFILE CHECKSUM: c28325f8c0994a48bbc35011f2de3d55cca790a4
PODFILE CHECKSUM: 93e4a0d6049261cca889912a17deebad59571a81
COCOAPODS: 1.1.0.rc.2

View File

@ -588,7 +588,6 @@
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0800;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
};
@ -895,7 +894,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 54DE24CF394C35117CF642A6 /* Pods-SugarRecord_Tests.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
@ -916,7 +914,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = EF1427C1C51BC3D125AAFF0F /* Pods-SugarRecord_Tests.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",

View File

@ -20,20 +20,6 @@
ReferencedContainer = "container:SugarRecord.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "SugarRecord_Tests.xctest"
BlueprintName = "SugarRecord_Tests"
ReferencedContainer = "container:SugarRecord.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction

View File

@ -17,7 +17,7 @@ class ObjectModelTests: QuickSpec {
expect(CoreDataObjectModel.merged([bundle]).model()).toNot(beNil())
})
it("should return the models in the main bundle", closure: {
expect(CoreDataObjectModel.merged(nil).model()?.entities.count) == 1
expect(CoreDataObjectModel.merged(nil).model()?.entities.count) == 0
})
})

View File

@ -5,7 +5,7 @@ lane :pods do
end
lane :tests do
scan(workspace: "Example/SugarRecord.xcworkspace", scheme: "SugarRecord_Tests", clean: true, skip_build: true, device: "iPhone 6s")
scan(workspace: "Example/SugarRecord.xcworkspace", scheme: "SugarRecord_Tests", device: "iPhone 6", skip_build: true)
end
lane :travis do