Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Package.swift for Swift5 #75

Merged
merged 1 commit into from
Jun 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// swift-tools-version:4.2
// swift-tools-version:5.0

import PackageDescription

let package = Package(
name: "DifferenceKit",
platforms: [
.iOS(.v9), .macOS(.v10_10), .tvOS(.v9), .watchOS(.v2)
],
products: [
.library(name: "DifferenceKit", targets: ["DifferenceKit"])
],
Expand All @@ -17,5 +20,6 @@ let package = Package(
dependencies: ["DifferenceKit"],
path: "Tests"
)
]
],
swiftLanguageVersions: [.v4_2, .v5]
)
22 changes: 22 additions & 0 deletions Package@swift-4.2.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// swift-tools-version:4.2

import PackageDescription

let package = Package(
name: "DifferenceKit",
products: [
.library(name: "DifferenceKit", targets: ["DifferenceKit"])
],
targets: [
.target(
name: "DifferenceKit",
path: "Sources"
),
.testTarget(
name: "DifferenceKitTests",
dependencies: ["DifferenceKit"],
path: "Tests"
)
],
swiftLanguageVersions: [.v4_2]
)
2 changes: 1 addition & 1 deletion test-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [[ `uname` == "Darwin" ]]; then

echo "Starting to running tests on Linux by Docker..."
docker-machine create --driver virtualbox $DOCKER_HOST_NAME || true
docker run -v $WORKING_DIR:$WORKING_DIR -w $WORKING_DIR -it --privileged swift:latest bash -c "$0" || true
docker run -v $WORKING_DIR:$WORKING_DIR -w $WORKING_DIR -it --privileged swift:latest bash -c "bash $0" || true
docker-machine stop $DOCKER_HOST_NAME || true
docker-machine rm -f $DOCKER_HOST_NAME || true
echo "Finish"
Expand Down