Skip to content

Commit

Permalink
Build SPM flavor on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
frederoni committed Apr 9, 2019
1 parent 8889ca5 commit 1d59309
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ step-library:
command: bash <(curl -s https://codecov.io/bash)

jobs:
spm-job:
parameters:
xcode:
type: string
macos:
xcode: << parameters.xcode >>
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- run: swift build

build-job:
parameters:
xcode:
Expand Down Expand Up @@ -111,3 +123,6 @@ workflows:
tvOS: "11.4"
watchOS: "4.3"
test: false
- spm-job:
name: "SPM_build"
xcode: "10.2.0"
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"pins": [
{
"package": "Polyline",
"repositoryURL": "/Users/fredrik/Workspace/mapbox/Polyline",
"repositoryURL": "https://github.com/raphaelmor/Polyline.git",
"state": {
"branch": "fred/spm4.2",
"revision": "4b4b4957549f7d0f1d59e6b3c662234402717de9",
"branch": "master",
"revision": "b5b6dff67db5d692c2253df79d9d6802953316b8",
"version": null
}
}
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "../Polyline", .branch("fred/spm4.2"))
.package(url: "https://github.com/raphaelmor/Polyline.git", .branch("master"))
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down

0 comments on commit 1d59309

Please sign in to comment.