Skip to content

Commit 973ff0f

Browse files
authored
Merge pull request #332 from typelift/swift-develop
Update to Swift 4
2 parents 8c04257 + 5801206 commit 973ff0f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1661
-1333
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ DerivedData
2323
Carthage/Build
2424
Carthage/Checkouts
2525

26+
# Docker
27+
.dockerignore
28+
Dockerfile
29+

.gitmodules

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[submodule "Carthage/Checkouts/Swiftx"]
2-
path = Carthage/Checkouts/Swiftx
32
url = https://github.com/typelift/Swiftx.git
4-
[submodule "Carthage/Checkouts/SwiftCheck"]
5-
path = Carthage/Checkouts/SwiftCheck
6-
url = https://github.com/typelift/SwiftCheck.git
3+
path = Carthage/Checkouts/Swiftx
4+
[submodule "Carthage/Checkouts/FileCheck"]
5+
path = Carthage/Checkouts/FileCheck
6+
url = https://github.com/trill-lang/FileCheck.git
77
[submodule "Carthage/Checkouts/Operadics"]
88
path = Carthage/Checkouts/Operadics
99
url = https://github.com/typelift/Operadics.git
10+
[submodule "Carthage/Checkouts/SwiftCheck"]
11+
path = Carthage/Checkouts/SwiftCheck
12+
url = https://github.com/typelift/SwiftCheck.git

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matrix:
55
include:
66
- os: osx
77
language: objective-c
8-
osx_image: xcode8.3
8+
osx_image: xcode9
99
before_install:
1010
- git submodule update --init --recursive
1111
script:
@@ -14,15 +14,15 @@ matrix:
1414
- carthage build --no-skip-current
1515
- os: osx
1616
language: objective-c
17-
osx_image: xcode8.3
17+
osx_image: xcode9
1818
before_install:
1919
- git submodule update --init --recursive
2020
script:
2121
- set -o pipefail
2222
- xcodebuild test -scheme Swiftz | xcpretty -c
2323
# !!!: Make sure desired device name & OS version are suitable for the Xcode version installed on osx_image
24-
- iOS_DEVICE_NAME="iPad Pro (12.9 inch)"
25-
- iOS_RUNTIME_VERSION="10.0"
24+
- iOS_DEVICE_NAME="iPad Pro (12.9-inch) (2nd generation)"
25+
- iOS_RUNTIME_VERSION="11.0"
2626
# Get simulator identifier for desired device/runtime pair
2727
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "${iOS_DEVICE_NAME} (${iOS_RUNTIME_VERSION}) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
2828
- echo $SIMULATOR_ID
@@ -37,11 +37,11 @@ matrix:
3737
before_install:
3838
- git submodule update --init --recursive
3939
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
40-
- wget https://swift.org/builds/swift-3.1-release/ubuntu1404/swift-3.1-RELEASE/swift-3.1-RELEASE-ubuntu14.04.tar.gz
41-
- tar xzf swift-3.1-RELEASE-ubuntu14.04.tar.gz
42-
- export PATH=${PWD}/swift-3.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
40+
- wget https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz
41+
- tar xzf swift-4.0-RELEASE-ubuntu14.04.tar.gz
42+
- export PATH=${PWD}/swift-4.0-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
4343
script:
44-
- swift build
44+
- swift test
4545
notifications:
4646
webhooks:
4747
urls:

Cartfile.private

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
github "typelift/Swiftx"
1+
github "typelift/Swiftx"
22
github "typelift/SwiftCheck"
33
github "typelift/Operadics"
4-

Cartfile.resolved

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
github "typelift/Operadics" "0.2.2"
2-
github "typelift/SwiftCheck" "0.8.0"
3-
github "typelift/Swiftx" "0.5.2"
1+
github "trill-lang/FileCheck" "0.0.4"
2+
github "typelift/Operadics" "0.3.0"
3+
github "typelift/SwiftCheck" "0.9.1"
4+
github "typelift/Swiftx" "0.6.0"

Carthage/Checkouts/FileCheck

Submodule FileCheck added at 0830734

Carthage/Checkouts/SwiftCheck

Submodule SwiftCheck updated 53 files

Package.swift

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1+
// swift-tools-version:4.0
2+
13
import PackageDescription
24

35
let package = Package(
46
name: "Swiftz",
5-
targets: [
6-
Target(name: "Swiftz")
7-
],
7+
products: [
8+
.library(
9+
name: "Swiftz",
10+
targets: ["Swiftz"]),
11+
],
812
dependencies: [
9-
.Package(url: "https://github.com/typelift/Operadics.git", versions: Version(0,2,2)...Version(0,2,2)),
10-
.Package(url: "https://github.com/typelift/Swiftx.git", versions: Version(0,5,1)...Version(0,5,1)),
11-
]
13+
.package(url: "https://github.com/typelift/Swiftx.git", from: "0.6.0"),
14+
.package(url: "https://github.com/typelift/SwiftCheck.git", from: "0.9.0")
15+
],
16+
targets: [
17+
.target(
18+
name: "Swiftz",
19+
dependencies: ["Swiftx"]),
20+
.testTarget(
21+
name: "SwiftzTests",
22+
dependencies: ["Swiftz", "SwiftCheck"]),
23+
]
1224
)
1325

0 commit comments

Comments
 (0)