Skip to content

Commit

Permalink
Added test target to SPM Package file with dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
sja26 committed Oct 10, 2018
1 parent 5cc4230 commit 0d6d6e1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
32 changes: 25 additions & 7 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,30 @@
"object": {
"pins": [
{
"package": "Clibgit",
"repositoryURL": "[email protected]:stonehouse/Clibgit.git",
"package": "Clibgit2",
"repositoryURL": "[email protected]:stonehouse/Clibgit2.git",
"state": {
"branch": null,
"revision": "5cc96d3222624a6b1e23dbaabaadbac284766643",
"revision": "9b0b2aab6e1d4f1d0bfde9397dbf8562add374b7",
"version": "1.0.0"
}
},
{
"package": "Clibgit2",
"repositoryURL": "git@github.com:stonehouse/Clibgit2.git",
"package": "Nimble",
"repositoryURL": "https://github.com/Quick/Nimble",
"state": {
"branch": null,
"revision": "9b0b2aab6e1d4f1d0bfde9397dbf8562add374b7",
"version": "1.0.0"
"revision": "cd6dfb86f496fcd96ce0bc6da962cd936bf41903",
"version": "7.3.1"
}
},
{
"package": "Quick",
"repositoryURL": "https://github.com/Quick/Quick",
"state": {
"branch": null,
"revision": "5fbf13871d185526993130c3a1fad0b70bfe37ce",
"version": "1.3.2"
}
},
{
Expand All @@ -27,6 +36,15 @@
"revision": "7477584259bfce2560a19e06ad9f71db441fff11",
"version": "3.2.4"
}
},
{
"package": "ZIPFoundation",
"repositoryURL": "https://github.com/weichsel/ZIPFoundation",
"state": {
"branch": null,
"revision": "b5c53bef2deb7b20659b03b1223f0942599e5c41",
"version": "0.9.6"
}
}
]
},
Expand Down
11 changes: 9 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,21 @@ let package = Package(
targets: ["SwiftGit2"]),
],
dependencies: [
.package(url: "https://github.com/antitypical/Result.git", "3.0.0" ..< "4.0.0"),
.package(url: "[email protected]:stonehouse/Clibgit2.git", .exact("1.0.0"))
.package(url: "https://github.com/antitypical/Result.git", "3.0.0" ..< "4.0.0"),
.package(url: "[email protected]:stonehouse/Clibgit2.git", .exact("1.0.0")),
.package(url: "https://github.com/Quick/Quick", from: "1.3.2"),
.package(url: "https://github.com/Quick/Nimble", from: "7.3.1"),
.package(url: "https://github.com/weichsel/ZIPFoundation", .upToNextMajor(from: "0.9.0"))
],
targets: [
.target(
name: "SwiftGit2",
dependencies: ["Result"],
path: "SwiftGit2"),
.testTarget(
name: "SwiftGit2Tests",
dependencies: ["SwiftGit2", "Quick", "Nimble", "ZIPFoundation"],
path: "SwiftGit2Tests")
]
)

0 comments on commit 0d6d6e1

Please sign in to comment.