|
|
@@ -7,23 +7,31 @@ platform :ios do
|
|
|
desc "Runs all the tests"
|
|
|
lane :tests do
|
|
|
test(destination: "platform=macOS", swift_version: "5.0")
|
|
|
- test(destination: "platform=iOS Simulator,name=iPhone 8", swift_version: "5.0")
|
|
|
- test(destination: "platform=tvOS Simulator,name=Apple TV", swift_version: "5.0")
|
|
|
-
|
|
|
test(destination: "platform=macOS", swift_version: "4.2")
|
|
|
- test(destination: "platform=iOS Simulator,name=iPhone 8", swift_version: "4.2")
|
|
|
- test(destination: "platform=tvOS Simulator,name=Apple TV", swift_version: "4.2")
|
|
|
-
|
|
|
test(destination: "platform=macOS", swift_version: "4.0")
|
|
|
+
|
|
|
+ test(destination: "platform=iOS Simulator,name=iPhone 8", swift_version: "5.0")
|
|
|
+ test(destination: "platform=iOS Simulator,name=iPhone 8", swift_version: "4.2")
|
|
|
test(destination: "platform=iOS Simulator,name=iPhone 8", swift_version: "4.0")
|
|
|
+
|
|
|
+ test(destination: "platform=tvOS Simulator,name=Apple TV", swift_version: "5.0")
|
|
|
+ test(destination: "platform=tvOS Simulator,name=Apple TV", swift_version: "4.2")
|
|
|
test(destination: "platform=tvOS Simulator,name=Apple TV", swift_version: "4.0")
|
|
|
+
|
|
|
+ build(destination: "platform=watchOS Simulator,name=Apple Watch Series 5 - 40mm", swift_version: "4.0")
|
|
|
+ build(destination: "platform=watchOS Simulator,name=Apple Watch Series 5 - 40mm", swift_version: "4.2")
|
|
|
+ build(destination: "platform=watchOS Simulator,name=Apple Watch Series 5 - 40mm", swift_version: "5.0")
|
|
|
end
|
|
|
-
|
|
|
- lane :test do |options|
|
|
|
- _test(options)
|
|
|
+
|
|
|
+ lane :test_ci do
|
|
|
+ if ENV["DESTINATION"].include? "watchOS" then
|
|
|
+ build(destination: ENV["DESTINATION"], swift_version: ENV["SWIFT_VERSION"])
|
|
|
+ else
|
|
|
+ test(destination: ENV["DESTINATION"], swift_version: ENV["SWIFT_VERSION"])
|
|
|
+ end
|
|
|
end
|
|
|
-
|
|
|
- private_lane :_test do |options|
|
|
|
+
|
|
|
+ lane :test do |options|
|
|
|
scan(
|
|
|
scheme: "Kingfisher",
|
|
|
clean: true,
|
|
|
@@ -31,11 +39,17 @@ platform :ios do
|
|
|
destination: options[:destination]
|
|
|
)
|
|
|
end
|
|
|
-
|
|
|
- lane :test_ci do
|
|
|
- test(destination: ENV["DESTINATION"], swift_version: ENV["SWIFT_VERSION"])
|
|
|
+
|
|
|
+ lane :build do |options|
|
|
|
+ gym(
|
|
|
+ workspace: "Kingfisher.xcworkspace",
|
|
|
+ configuration: "Debug",
|
|
|
+ scheme: "Kingfisher",
|
|
|
+ xcargs: "SWIFT_VERSION=#{options[:swift_version]}",
|
|
|
+ destination: options[:destination]
|
|
|
+ )
|
|
|
end
|
|
|
-
|
|
|
+
|
|
|
desc "Lint"
|
|
|
lane :lint do
|
|
|
carthage(command: "build", no_skip_current: true, platform: "iOS")
|