This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #4 from vapor/swift4
Swift4
- Loading branch information
Showing
4 changed files
with
94 additions
and
9 deletions.
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "Bits", | ||
"repositoryURL": "https://github.com/vapor/bits.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "c32f5e6ae2007dccd21a92b7e33eba842dd80d2f", | ||
"version": "1.1.0" | ||
} | ||
}, | ||
{ | ||
"package": "Core", | ||
"repositoryURL": "https://github.com/vapor/core.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "1b593cd335b465b92cc530b5125f4712cc2827cc", | ||
"version": "2.1.1" | ||
} | ||
}, | ||
{ | ||
"package": "Debugging", | ||
"repositoryURL": "https://github.com/vapor/debugging.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "49c5e8f0a7cb5456a8f7c72c6cd9f1553e5885a8", | ||
"version": "1.1.0" | ||
} | ||
}, | ||
{ | ||
"package": "Random", | ||
"repositoryURL": "https://github.com/vapor/random.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "d7c4397d125caba795d14d956efacfe2a27a63d0", | ||
"version": "1.2.0" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
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,18 @@ | ||
// swift-tools-version:4.0 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "BCrypt", | ||
products: [ | ||
.library(name: "BCrypt", targets: ["BCrypt"]), | ||
], | ||
dependencies: [ | ||
// Module for generating random bytes and numbers. | ||
.package(url: "https://github.com/vapor/random.git", .upToNextMajor(from: "1.2.0")), | ||
], | ||
targets: [ | ||
.target(name: "BCrypt", dependencies: ["Random"]), | ||
.testTarget(name: "BCryptTests", dependencies: ["BCrypt"]), | ||
] | ||
) |
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
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,3 +1,16 @@ | ||
dependencies: | ||
override: | ||
- eval "$(curl -sL https://apt.vapor.sh)" | ||
- sudo apt-get install swift | ||
- sudo chmod -R a+rx /usr/ | ||
test: | ||
override: | ||
- eval "$(curl -sL swift.vapor.sh/ci-3.1)" | ||
- 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 | ||
|