-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from vapor/swift-4
swift 4
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
/*.xcodeproj | ||
Package.pins | ||
DerivedData | ||
Package.resolved | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// swift-tools-version:4.0 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "AuthProvider", | ||
products: [ | ||
.library(name: "AuthProvider", targets: ["AuthProvider"]), | ||
], | ||
dependencies: [ | ||
// A web framework and server for Swift that works on macOS and Ubuntu. | ||
.package(url: "https://github.com/vapor/auth.git", .upToNextMajor(from: "1.2.0")), | ||
|
||
// A web framework and server for Swift that works on macOS and Ubuntu. | ||
.package(url: "https://github.com/vapor/vapor.git", .upToNextMajor(from: "2.2.0")), | ||
], | ||
targets: [ | ||
.target(name: "AuthProvider", dependencies: ["Authentication", "Authorization", "Vapor"]), | ||
.testTarget(name: "AuthProviderTests", dependencies: ["AuthProvider", "Testing"]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
dependencies: | ||
override: | ||
- eval "$(curl -sL https://apt.vapor.sh)" | ||
- sudo apt-get install vapor | ||
- sudo apt-get install swift | ||
- sudo chmod -R a+rx /usr/ | ||
test: | ||
override: | ||
- swift build | ||
- swift build -c release | ||
- swift test | ||
- sudo apt-get remove swift | ||
- sudo apt-get install swift-beta | ||
- swift build | ||
- swift build -c release | ||
- swift test | ||
|