-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathPackage.swift
38 lines (34 loc) · 1.02 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// swift-tools-version:5.0
import Foundation
import PackageDescription
let package = Package(
name: "TryParsec",
products: [
.library(
name: "TryParsec",
targets: ["TryParsec"]),
],
dependencies: [
.package(url: "https://github.com/thoughtbot/Runes.git", .exact("4.2.1")),
],
targets: [
.target(
name: "TryParsec",
dependencies: ["Runes"])
]
)
// `$ TRYPARSEC_SPM_TEST=1 swift test`
if ProcessInfo.processInfo.environment.keys.contains("TRYPARSEC_SPM_TEST") {
package.targets.append(
.testTarget(
name: "TryParsecTests",
dependencies: ["TryParsec", "Curry", "Quick", "Nimble"])
)
package.dependencies.append(
contentsOf: [
.package(url: "https://github.com/thoughtbot/Curry.git", from: "4.0.0"),
.package(url: "https://github.com/Quick/Quick.git", from: "2.1.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.0"),
]
)
}