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

[SwiftPM] Remove test dependencies from Package.swift #83

Merged
merged 1 commit into from
Nov 6, 2016
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: 10 additions & 0 deletions .Package.test.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import PackageDescription

let package = Package(
name: "Commandant",
dependencies: [
.Package(url: "https://github.com/antitypical/Result.git", majorVersion: 3, minor: 0),
.Package(url: "https://github.com/Quick/Nimble", majorVersion: 5),
.Package(url: "https://github.com/Quick/Quick", majorVersion: 0, minor: 10),
]
)
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ matrix:
osx_image: xcode8
language: objective-c
env: JOB=SPM
- script: swift build && swift test
- script:
- mv .Package.test.swift Package.swift
- swift build
- swift test
env: JOB=Linux
sudo: required
dist: trusty
Expand Down
15 changes: 3 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@ import PackageDescription

let package = Package(
name: "Commandant",
dependencies: {
#if os(macOS)
return [
.Package(url: "https://github.com/antitypical/Result.git", majorVersion: 3, minor: 0),
]
#else
return [
.Package(url: "https://github.com/antitypical/Result.git", majorVersion: 3, minor: 0),
.Package(url: "https://github.com/Quick/Quick", majorVersion: 0, minor: 10),
]
#endif
}()
dependencies: [
.Package(url: "https://github.com/antitypical/Result.git", majorVersion: 3, minor: 0),
]
)