Skip to content

Commit

Permalink
Merge pull request #10 from PromiseKit/swiftpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl authored Dec 8, 2018
2 parents 9799a00 + 9870c93 commit c7cb4bf
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ branches:
- master
stages:
- lint
- swiftPM
- test
jobs:
include:
Expand Down Expand Up @@ -32,7 +33,7 @@ jobs:
env: SWIFT=3.3
name: pod lib lint --swift-version=3.3
- <<: *pod
osx_image: xcode10
osx_image: xcode10.1
env: SWIFT=3.4
name: pod lib lint --swift-version=3.4
- <<: *pod
Expand All @@ -44,13 +45,20 @@ jobs:
env: SWIFT=4.1
name: pod lib lint --swift-version=4.1
- <<: *pod
osx_image: xcode10
osx_image: xcode10.1
env: SWIFT=4.2
name: pod lib lint --swift-version=4.2

- stage: swiftPM
os: osx
language: objective-c
osx_image: xcode10.1
name: SwiftPM
script: swift build

- &test
stage: test
osx_image: xcode10
osx_image: xcode10.1
name: macOS Tests
env: DST='arch=x86_64' PLAT=macOS
os: osx
Expand Down
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "mxcl/PromiseKit" "6.5.1"
github "mxcl/PromiseKit" "6.7.0"
24 changes: 24 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// swift-tools-version:4.2
import PackageDescription

let name = "PMKStoreKit"

let pkg = Package(name: name)
pkg.products = [
.library(name: name, targets: [name]),
]
pkg.swiftLanguageVersions = [.v3, .v4, .v4_2]
pkg.dependencies = [
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.0.0")
]

let target: Target = .target(name: name)
target.path = "Sources"
target.exclude = [
"SKRequest+AnyPromise.h",
"SKRequest+AnyPromise.m",
"\(name).h",
]
target.dependencies = ["PromiseKit"]

pkg.targets = [target]

0 comments on commit c7cb4bf

Please sign in to comment.