Explorar o código

Update fastfile to include pod lint

onevcat %!s(int64=8) %!d(string=hai) anos
pai
achega
8cd7ce0e5b
Modificáronse 2 ficheiros con 4 adicións e 14 borrados
  1. 1 1
      Kingfisher.podspec
  2. 3 13
      fastlane/Fastfile

+ 1 - 1
Kingfisher.podspec

@@ -42,7 +42,7 @@ Pod::Spec.new do |s|
                              "Sources/NSButton+Kingfisher.swift", 
                              "Sources/Indicator.swift", 
                              "Sources/Filter.swift",
-                              "Sources/Placeholder.swift"
+                             "Sources/Placeholder.swift"
                             ]
   s.ios.exclude_files = "Sources/NSButton+Kingfisher.swift"
   s.tvos.exclude_files = "Sources/NSButton+Kingfisher.swift"

+ 3 - 13
fastlane/Fastfile

@@ -15,20 +15,10 @@ platform :ios do
     scan(scheme: "Kingfisher-tvOS", clean: true)
   end
   
-  desc "Build for Carthage"
-  lane :carthage_lint do
-      Actions.sh("cd .. && carthage build --no-skip-current && cd fastlane")
-  end
-  
-  desc "Lint for Cocoapod"
-  lane :pod_lint do
-      Actions.sh("cd .. && pod lib lint && cd fastlane")
-  end
-  
   desc "Lint"
   lane :lint do
-      carthage_lint
-      pod_lint
+      carthage(command: "build", no_skip_current: true)
+      pod_lib_lint
   end
 
   desc "Release new version"
@@ -40,7 +30,7 @@ platform :ios do
       ensure_git_status_clean
       
       test_all_schemes
-      carthage_lint
+      lint
       
       sync_build_number_to_git
       increment_version_number(version_number: target_version)