Skip to content

Commit

Permalink
Merge pull request JohnSundell#53 from iainsmith/4.0
Browse files Browse the repository at this point in the history
Add support for Swift 4.0 & update CI
  • Loading branch information
JohnSundell authored Apr 10, 2018
2 parents 4359654 + f1dcfbf commit 06f95bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
os: linux
os:
- linux
- osx
language: generic
osx_image: xcode9
sudo: required
dist: trusty
env:
- SWIFT_VERSION=4.0
- SWIFT_VERSION=4.1
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
script:
- swift test
6 changes: 6 additions & 0 deletions Sources/Files.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,12 @@ private extension ProcessInfo {
}
}

#if os(Linux) && !(swift(>=4.1))
private extension ObjCBool {
var boolValue: Bool { return Bool(self) }
}
#endif

#if !os(Linux)
extension FileSystem {
/// A reference to the document folder used by this file system.
Expand Down

0 comments on commit 06f95bd

Please sign in to comment.