-
Notifications
You must be signed in to change notification settings - Fork 22
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 #40 from 0xTim/master
Update for Swift 4
- Loading branch information
Showing
5 changed files
with
52 additions
and
12 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/.build | ||
/Packages | ||
/*.xcodeproj | ||
DerivedData/ |
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,31 @@ | ||
os: | ||
- linux | ||
- osx | ||
- linux | ||
- osx | ||
language: generic | ||
sudo: required | ||
dist: trusty | ||
osx_image: xcode8 | ||
|
||
osx_image: xcode9 | ||
before_install: | ||
- if [ $TRAVIS_OS_NAME == "osx" ]; then | ||
HOMEBREW_NO_AUTO_UPDATE=1 brew install vapor/tap/vapor; | ||
else | ||
eval "$(curl -sL https://apt.vapor.sh)"; | ||
sudo apt-get install vapor; | ||
sudo chmod -R a+rx /usr/; | ||
fi | ||
|
||
script: | ||
- eval "$(curl -sL https://swift.vapor.sh/ci)" | ||
- eval "$(curl -sL https://swift.vapor.sh/codecov)" | ||
- swift build | ||
- swift build -c release | ||
- swift test | ||
- if [ $TRAVIS_OS_NAME != "osx" ]; then | ||
sudo apt-get remove vapor; | ||
sudo apt-get install swift=3.1.1; | ||
swift build; | ||
swift build -c release; | ||
swift test; | ||
fi | ||
|
||
after_success: | ||
- eval "$(curl -sL https://raw.githubusercontent.com/vapor-community/swift/master/codecov)" |
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,14 @@ | ||
// swift-tools-version:4.0 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Jobs", | ||
products: [ | ||
.library(name: "Jobs", targets: ["Jobs"]), | ||
], | ||
targets: [ | ||
.target(name: "Jobs", path: "Sources"), | ||
.testTarget(name: "JobsTests", dependencies: ["Jobs"]), | ||
] | ||
) |
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