From 822c0feeec5ebf2850a8bfb1fd8eaaf503149fbd Mon Sep 17 00:00:00 2001 From: Sho Ikeda Date: Sat, 7 Jul 2018 10:46:53 +0900 Subject: [PATCH 1/2] Drop Swift 3 support --- .swift-version | 2 +- .travis.yml | 17 +++++++---------- Commandant.podspec | 2 ++ Commandant.xcodeproj/project.pbxproj | 8 ++++---- Package.swift | 2 +- 5 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.swift-version b/.swift-version index 7d5c902..4d0dcda 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -4.1 +4.1.2 diff --git a/.travis.yml b/.travis.yml index f4b11c2..8a64798 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ aliases: language: objective-c - &cocoapods script: + - rm .swift-version - pod repo update master - pod lib lint --verbose os: osx @@ -41,14 +42,14 @@ matrix: osx_image: xcode9.2 env: JOB=Xcode9.2 - <<: *xcode - osx_image: xcode9.3 - env: JOB=Xcode9.3 + osx_image: xcode9.4 + env: JOB=Xcode9.4 - <<: *cocoapods - osx_image: xcode9.3 + osx_image: xcode9.4 - <<: *swiftpm_darwin osx_image: xcode9.2 - <<: *swiftpm_darwin - osx_image: xcode9.3 + osx_image: xcode9.4 - <<: *swiftpm_linux env: - JOB=Linux @@ -59,11 +60,7 @@ matrix: - <<: *swiftpm_linux env: - JOB=Linux - - SWIFT_VERSION=4.1.2 - - <<: *swiftpm_linux - env: - - JOB=Linux - - SWIFT_VERSION=4.2-DEVELOPMENT-SNAPSHOT-2018-06-15-a + - SWIFT_VERSION=4.2-DEVELOPMENT-SNAPSHOT-2018-07-05-a notifications: email: false @@ -85,4 +82,4 @@ deploy: on: repo: Carthage/Commandant tags: true - condition: $JOB = Xcode9.3 + condition: $JOB = Xcode9.4 diff --git a/Commandant.podspec b/Commandant.podspec index b9e1bb1..c05af71 100644 --- a/Commandant.podspec +++ b/Commandant.podspec @@ -27,4 +27,6 @@ Commandant is a Swift framework for parsing command-line arguments, inspired by s.dependency "Result", "~> 3.2" + s.cocoapods_version = ">= 1.4.0" + s.swift_version = "4.0" end diff --git a/Commandant.xcodeproj/project.pbxproj b/Commandant.xcodeproj/project.pbxproj index b42c037..072ede3 100644 --- a/Commandant.xcodeproj/project.pbxproj +++ b/Commandant.xcodeproj/project.pbxproj @@ -416,7 +416,7 @@ ENABLE_TESTABILITY = YES; MACOSX_DEPLOYMENT_TARGET = 10.9; ONLY_ACTIVE_ARCH = YES; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -436,7 +436,7 @@ CURRENT_PROJECT_VERSION = 1; MACOSX_DEPLOYMENT_TARGET = 10.9; SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -516,7 +516,7 @@ CLANG_WARN_SUSPICIOUS_MOVE = YES; CURRENT_PROJECT_VERSION = 1; MACOSX_DEPLOYMENT_TARGET = 10.9; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -565,7 +565,7 @@ CLANG_WARN_SUSPICIOUS_MOVE = YES; CURRENT_PROJECT_VERSION = 1; MACOSX_DEPLOYMENT_TARGET = 10.9; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; diff --git a/Package.swift b/Package.swift index 41a6ad5..b918602 100644 --- a/Package.swift +++ b/Package.swift @@ -16,5 +16,5 @@ let package = Package( .target(name: "Commandant", dependencies: ["Result"]), .testTarget(name: "CommandantTests", dependencies: ["Commandant", "Quick", "Nimble"]), ], - swiftLanguageVersions: [3, 4] + swiftLanguageVersions: [4] ) From 030aca7de500b47766e551d756ac317ceb7efd03 Mon Sep 17 00:00:00 2001 From: Sho Ikeda Date: Sat, 7 Jul 2018 11:00:36 +0900 Subject: [PATCH 2/2] Add `env: JOB=CocoaPods` --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 8a64798..60bc687 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ aliases: - pod lib lint --verbose os: osx language: objective-c + env: JOB=CocoaPods - &swiftpm script: - swift --version