Skip to content

Commit

Permalink
Merge pull request #332 from typelift/swift-develop
Browse files Browse the repository at this point in the history
Update to Swift 4
  • Loading branch information
CodaFi authored Nov 4, 2017
2 parents 8c04257 + 5801206 commit 973ff0f
Show file tree
Hide file tree
Showing 80 changed files with 1,661 additions and 1,333 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ DerivedData
Carthage/Build
Carthage/Checkouts

# Docker
.dockerignore
Dockerfile

11 changes: 7 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[submodule "Carthage/Checkouts/Swiftx"]
path = Carthage/Checkouts/Swiftx
url = https://github.com/typelift/Swiftx.git
[submodule "Carthage/Checkouts/SwiftCheck"]
path = Carthage/Checkouts/SwiftCheck
url = https://github.com/typelift/SwiftCheck.git
path = Carthage/Checkouts/Swiftx
[submodule "Carthage/Checkouts/FileCheck"]
path = Carthage/Checkouts/FileCheck
url = https://github.com/trill-lang/FileCheck.git
[submodule "Carthage/Checkouts/Operadics"]
path = Carthage/Checkouts/Operadics
url = https://github.com/typelift/Operadics.git
[submodule "Carthage/Checkouts/SwiftCheck"]
path = Carthage/Checkouts/SwiftCheck
url = https://github.com/typelift/SwiftCheck.git
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ matrix:
include:
- os: osx
language: objective-c
osx_image: xcode8.3
osx_image: xcode9
before_install:
- git submodule update --init --recursive
script:
Expand All @@ -14,15 +14,15 @@ matrix:
- carthage build --no-skip-current
- os: osx
language: objective-c
osx_image: xcode8.3
osx_image: xcode9
before_install:
- git submodule update --init --recursive
script:
- set -o pipefail
- xcodebuild test -scheme Swiftz | xcpretty -c
# !!!: Make sure desired device name & OS version are suitable for the Xcode version installed on osx_image
- iOS_DEVICE_NAME="iPad Pro (12.9 inch)"
- iOS_RUNTIME_VERSION="10.0"
- iOS_DEVICE_NAME="iPad Pro (12.9-inch) (2nd generation)"
- iOS_RUNTIME_VERSION="11.0"
# Get simulator identifier for desired device/runtime pair
- SIMULATOR_ID=$(xcrun instruments -s | grep -o "${iOS_DEVICE_NAME} (${iOS_RUNTIME_VERSION}) \[.*\]" | grep -o "\[.*\]" | sed "s/^\[\(.*\)\]$/\1/")
- echo $SIMULATOR_ID
Expand All @@ -37,11 +37,11 @@ matrix:
before_install:
- git submodule update --init --recursive
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import -
- wget https://swift.org/builds/swift-3.1-release/ubuntu1404/swift-3.1-RELEASE/swift-3.1-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-3.1-RELEASE-ubuntu14.04.tar.gz
- export PATH=${PWD}/swift-3.1-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- wget https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-4.0-RELEASE-ubuntu14.04.tar.gz
- export PATH=${PWD}/swift-4.0-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
script:
- swift build
- swift test
notifications:
webhooks:
urls:
Expand Down
3 changes: 1 addition & 2 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
github "typelift/Swiftx"
github "typelift/Swiftx"
github "typelift/SwiftCheck"
github "typelift/Operadics"

7 changes: 4 additions & 3 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
github "typelift/Operadics" "0.2.2"
github "typelift/SwiftCheck" "0.8.0"
github "typelift/Swiftx" "0.5.2"
github "trill-lang/FileCheck" "0.0.4"
github "typelift/Operadics" "0.3.0"
github "typelift/SwiftCheck" "0.9.1"
github "typelift/Swiftx" "0.6.0"
1 change: 1 addition & 0 deletions Carthage/Checkouts/FileCheck
Submodule FileCheck added at 083073
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Operadics
2 changes: 1 addition & 1 deletion Carthage/Checkouts/SwiftCheck
Submodule SwiftCheck updated 53 files
+5 −0 .gitignore
+3 −0 .gitmodules
+1 −1 .swift-version
+7 −7 .travis.yml
+1 −0 Cartfile
+1 −0 Cartfile.resolved
+1 −0 Carthage/Checkouts/FileCheck
+15 −1 Package.swift
+14 −15 README.md
+0 −896 Sources/Cartesian.swift
+25 −12 Sources/SwiftCheck/Arbitrary.swift
+1,306 −0 Sources/SwiftCheck/Cartesian.swift
+40 −23 Sources/SwiftCheck/Check.swift
+2 −2 Sources/SwiftCheck/CoArbitrary.swift
+7 −7 Sources/SwiftCheck/Compose.swift
+104 −115 Sources/SwiftCheck/Gen.swift
+2 −2 Sources/SwiftCheck/Lattice.swift
+14 −11 Sources/SwiftCheck/Modifiers.swift
+54 −56 Sources/SwiftCheck/Property.swift
+31 −25 Sources/SwiftCheck/Random.swift
+2 −2 Sources/SwiftCheck/Rose.swift
+0 −0 Sources/SwiftCheck/State.swift
+0 −0 Sources/SwiftCheck/SwiftCheck.h
+6 −5 Sources/SwiftCheck/Test.swift
+0 −1 Sources/SwiftCheck/Testable.swift
+27 −27 Sources/SwiftCheck/Witness.swift
+13 −11 Sources/SwiftCheck/WitnessedArbitrary.swift
+2 −2 SwiftCheck.podspec
+401 −329 SwiftCheck.xcodeproj/project.pbxproj
+3 −1 SwiftCheck.xcodeproj/xcshareddata/xcschemes/SwiftCheck-iOS.xcscheme
+3 −1 SwiftCheck.xcodeproj/xcshareddata/xcschemes/SwiftCheck-tvOS.xcscheme
+3 −1 SwiftCheck.xcodeproj/xcshareddata/xcschemes/SwiftCheck.xcscheme
+24 −10 Templates/Cartesian.swift.gyb
+6 −3 Templates/CartesianSpec.swift.gyb
+3 −0 Tests/SwiftCheckTests/BooleanIdentitySpec.swift
+24 −21 Tests/SwiftCheckTests/CartesianSpec.swift
+6 −3 Tests/SwiftCheckTests/ComplexSpec.swift
+3 −0 Tests/SwiftCheckTests/DiscardSpec.swift
+17 −2 Tests/SwiftCheckTests/FailureSpec.swift
+0 −1,212 Tests/SwiftCheckTests/FileCheck.swift
+6 −3 Tests/SwiftCheckTests/FormatterSpec.swift
+34 −31 Tests/SwiftCheckTests/GenSpec.swift
+17 −14 Tests/SwiftCheckTests/LambdaSpec.swift
+4 −1 Tests/SwiftCheckTests/ModifierSpec.swift
+5 −3 Tests/SwiftCheckTests/PathSpec.swift
+3 −0 Tests/SwiftCheckTests/PropertySpec.swift
+4 −1 Tests/SwiftCheckTests/ReplaySpec.swift
+7 −2 Tests/SwiftCheckTests/RoseSpec.swift
+3 −0 Tests/SwiftCheckTests/ShrinkSpec.swift
+21 −8 Tests/SwiftCheckTests/SimpleSpec.swift
+4 −1 Tests/SwiftCheckTests/TestSpec.swift
+9 −9 Tutorial.playground/Contents.swift
+1 −1 Utilities/compile.sh
24 changes: 18 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
// swift-tools-version:4.0

import PackageDescription

let package = Package(
name: "Swiftz",
targets: [
Target(name: "Swiftz")
],
products: [
.library(
name: "Swiftz",
targets: ["Swiftz"]),
],
dependencies: [
.Package(url: "https://github.com/typelift/Operadics.git", versions: Version(0,2,2)...Version(0,2,2)),
.Package(url: "https://github.com/typelift/Swiftx.git", versions: Version(0,5,1)...Version(0,5,1)),
]
.package(url: "https://github.com/typelift/Swiftx.git", from: "0.6.0"),
.package(url: "https://github.com/typelift/SwiftCheck.git", from: "0.9.0")
],
targets: [
.target(
name: "Swiftz",
dependencies: ["Swiftx"]),
.testTarget(
name: "SwiftzTests",
dependencies: ["Swiftz", "SwiftCheck"]),
]
)

17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,23 @@ To add Swiftz to your application:

**Using Swift Package Manager**

- Add Swiftz to your `Package.swift` file's `dependencies` section:
- Add Swiftz to your `Package.swift` within your project's `Package` definition:

```swift
.Package(url: "https://github.com/typelift/Swiftz", versions: Version(0,6,0)..<Version(1,0,0))
let package = Package(
name: "MyProject",
...
dependencies: [
.package(url: "https://github.com/typelift/Swiftz.git", from: "0.0.0")
...
],
targets: [
.target(
name: "MyProject",
dependencies: ["Swiftz"]),
...
]
)
```

System Requirements
Expand Down
Loading

0 comments on commit 973ff0f

Please sign in to comment.