Skip to content

Commit 5999228

Browse files
committed
Swift 5 manifest & tests
1 parent 9e1d760 commit 5999228

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ jobs:
8484
- <<: *linux
8585
env: SWIFT_BUILD_VERSION=4 SWIFT_VERSION=4.2
8686
name: Linux / Swift 4.2
87+
- <<: *linux
88+
env: SWIFT_BUILD_VERSION=5 SWIFT_VERSION=5.0-DEVELOPMENT-SNAPSHOT-2019-01-22-a
89+
name: Linux / Swift 5.0 (2019-01-22)
8790

8891
- &swiftpm
8992
stage: compile

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package@swift-5.0.swift

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// swift-tools-version:5.0
2+
3+
import PackageDescription
4+
5+
let pkg = Package(name: "PMKFoundation")
6+
pkg.products = [
7+
.library(name: "PMKFoundation", targets: ["PMKFoundation"]),
8+
]
9+
pkg.dependencies = [
10+
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.8.3")
11+
]
12+
pkg.swiftLanguageVersions = [.v4, .v4_2, .v5]
13+
14+
let target: Target = .target(name: "PMKFoundation")
15+
target.path = "Sources"
16+
target.exclude = ["NSNotificationCenter", "NSTask", "NSURLSession"].flatMap {
17+
["\($0)+AnyPromise.m", "\($0)+AnyPromise.h"]
18+
}
19+
target.exclude.append("PMKFoundation.h")
20+
21+
target.dependencies = [
22+
"PromiseKit"
23+
]
24+
25+
#if os(Linux)
26+
target.exclude += [
27+
"afterlife.swift",
28+
"NSObject+Promise.swift"
29+
]
30+
#endif
31+
32+
pkg.targets = [target]
33+
34+
pkg.platforms = [
35+
.macOS(.v10_10), .iOS(.v8), .tvOS(.v9), .watchOS(.v2)
36+
]

0 commit comments

Comments
 (0)