Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 8.3 / SwiftPM 3.1 #103

Merged
merged 2 commits into from
Apr 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .Package.test.swift

This file was deleted.

2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.2
3.1
20 changes: 5 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
xcode_workspace: Commandant.xcworkspace
git:
submodules: false
branches:
only:
- master
before_install:
- git submodule update --init --recursive
script: placeholder # workaround for https://github.com/travis-ci/travis-ci/issues/4681
matrix:
exclude:
Expand All @@ -14,25 +10,19 @@ matrix:
- script: set -o pipefail && xcodebuild -workspace "$TRAVIS_XCODE_WORKSPACE" -scheme "$TRAVIS_XCODE_SCHEME" test | xcpretty
xcode_scheme: Commandant
os: osx
osx_image: xcode8.2
osx_image: xcode8.3
language: objective-c
env: JOB=Xcode8
- script:
- mv .Package.test.swift Package.swift
- swift package update
- cd Packages/Nimble-* && git checkout 8116a83864ee78339798c3ef425c42f6ca6bf034 && cd ../../
- SWIFT_GIT=`xcrun --find git` swift build
- swift test
- swift build
- SWIFTPM_TEST_Commandant=YES swift test
os: osx
osx_image: xcode8.2
osx_image: xcode8.3
language: objective-c
env: JOB=SPM
- script:
- mv .Package.test.swift Package.swift
- swift package update
- cd Packages/Nimble-* && git checkout 8116a83864ee78339798c3ef425c42f6ca6bf034 && cd ../../
- swift build
- swift test
- SWIFTPM_TEST_Commandant=YES swift test
env: JOB=Linux
sudo: required
dist: trusty
Expand Down
2 changes: 1 addition & 1 deletion Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "jspahrsummers/xcconfigs" ~> 0.9
github "Quick/Quick" ~> 1.1
github "Quick/Nimble" "8116a83864ee78339798c3ef425c42f6ca6bf034"
github "Quick/Nimble" ~> 6.1
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "Quick/Nimble" "8116a83864ee78339798c3ef425c42f6ca6bf034"
github "Quick/Nimble" "v6.1.0"
github "Quick/Quick" "v1.1.0"
github "antitypical/Result" "3.2.1"
github "jspahrsummers/xcconfigs" "0.9"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
Submodule Nimble updated 31 files
+3 −0 .swiftlint.yml
+3 −0 Dockerfile.test
+7 −5 Nimble.podspec
+188 −104 Nimble.xcodeproj/project.pbxproj
+1 −1 Nimble.xcodeproj/xcshareddata/xcschemes/Nimble-iOS.xcscheme
+1 −1 Nimble.xcodeproj/xcshareddata/xcschemes/Nimble-macOS.xcscheme
+1 −1 Nimble.xcodeproj/xcshareddata/xcschemes/Nimble-tvOS.xcscheme
+0 −3 Sources/Lib/CwlPreconditionTesting/CwlCatchException/.gitignore
+0 −0 Sources/Lib/CwlPreconditionTesting/CwlCatchException/CwlCatchException.swift
+0 −28 Sources/Lib/CwlPreconditionTesting/CwlCatchException/CwlCatchException/Info.plist
+0 −0 Sources/Lib/CwlPreconditionTesting/CwlCatchExceptionSupport/CwlCatchException.m
+0 −0 Sources/Lib/CwlPreconditionTesting/CwlCatchExceptionSupport/include/CwlCatchException.h
+2 −1 Sources/Lib/CwlPreconditionTesting/CwlMachBadInstructionHandler/CwlMachBadInstructionHandler.m
+0 −5 Sources/Lib/CwlPreconditionTesting/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h
+2 −2 Sources/Lib/CwlPreconditionTesting/CwlMachBadInstructionHandler/mach_excServer.c
+0 −0 Sources/Lib/CwlPreconditionTesting/CwlMachBadInstructionHandler/mach_excServer.h
+11 −11 Sources/Lib/CwlPreconditionTesting/CwlPreconditionTesting/CwlBadInstructionException.swift
+23 −22 Sources/Lib/CwlPreconditionTesting/CwlPreconditionTesting/CwlCatchBadInstruction.swift
+14 −17 Sources/Lib/CwlPreconditionTesting/CwlPreconditionTesting/CwlCatchBadInstructionPOSIX.swift
+5 −5 Sources/Lib/CwlPreconditionTesting/CwlPreconditionTesting/CwlDarwinDefinitions.swift
+0 −25 Sources/Lib/CwlPreconditionTesting/CwlPreconditionTesting/Info.plist
+30 −0 Sources/Lib/CwlPreconditionTesting/CwlPreconditionTesting/Mach/CwlPreconditionTesting.h
+27 −0 Sources/Lib/CwlPreconditionTesting/CwlPreconditionTesting/Posix/CwlPreconditionTesting.h
+1 −6 Sources/Nimble/Nimble.h
+1 −5 Sources/Nimble/Utils/Errors.swift
+2 −0 Sources/NimbleObjectiveC/DSL.h
+4 −0 Tests/NimbleTests/Matchers/BeGreaterThanOrEqualToTest.swift
+3 −0 Tests/NimbleTests/Matchers/BeGreaterThanTest.swift
+2 −0 Tests/NimbleTests/objc/ObjCBeGreaterThanOrEqualToTest.m
+1 −0 Tests/NimbleTests/objc/ObjCBeGreaterThanTest.m
+21 −8 test
24 changes: 24 additions & 0 deletions Package.pins
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"autoPin": true,
"pins": [
{
"package": "Nimble",
"reason": null,
"repositoryURL": "https://github.com/Quick/Nimble.git",
"version": "6.1.0"
},
{
"package": "Quick",
"reason": null,
"repositoryURL": "https://github.com/Quick/Quick.git",
"version": "1.1.0"
},
{
"package": "Result",
"reason": null,
"repositoryURL": "https://github.com/antitypical/Result.git",
"version": "3.2.1"
}
],
"version": 1
}
20 changes: 17 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
import Foundation
import PackageDescription

var isSwiftPackagerManagerTest: Bool {
return ProcessInfo.processInfo.environment["SWIFTPM_TEST_Commandant"] == "YES"
}

let package = Package(
name: "Commandant",
dependencies: [
.Package(url: "https://github.com/antitypical/Result.git", versions: Version(3, 2, 1)..<Version(3, .max, .max)),
]
dependencies: {
var deps: [Package.Dependency] = [
.Package(url: "https://github.com/antitypical/Result.git", versions: Version(3, 2, 1)..<Version(3, .max, .max)),
]
if isSwiftPackagerManagerTest {
deps += [
.Package(url: "https://github.com/Quick/Quick.git", majorVersion: 1, minor: 1),
.Package(url: "https://github.com/Quick/Nimble.git", majorVersion: 6, minor: 1),
]
}
return deps
}()
)
2 changes: 1 addition & 1 deletion Tests/CommandantTests/OptionSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,6 @@ func ==<T: Equatable>(lhs: [T]?, rhs: [T]?) -> Bool {

extension TestOptions: CustomStringConvertible {
var description: String {
return "{ intValue: \(intValue), stringValue: \(stringValue), stringsArray: \(stringsArray), optionalStringsArray: \(optionalStringsArray), optionalStringValue: \(optionalStringValue), optionalFilename: \(optionalFilename), requiredName: \(requiredName), enabled: \(enabled), force: \(force), glob: \(glob), arguments: \(arguments) }"
return "{ intValue: \(intValue), stringValue: \(stringValue), stringsArray: \(stringsArray), optionalStringsArray: \(String(describing: optionalStringsArray)), optionalStringValue: \(String(describing: optionalStringValue)), optionalFilename: \(optionalFilename), requiredName: \(requiredName), enabled: \(enabled), force: \(force), glob: \(glob), arguments: \(arguments) }"
}
}