Просмотр исходного кода

Upgrade swift lint before release

onevcat 10 лет назад
Родитель
Сommit
a844b67c19
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      fastlane/Fastfile

+ 8 - 0
fastlane/Fastfile

@@ -15,6 +15,12 @@ platform :ios do
     scan(scheme: "Kingfisher-tvOS", clean: true)
   end
   
+  desc "Swift Lint"
+  lane :upgrade_swift_lint do
+      Actions.sh("brew update")
+      Actions.sh("brew install swiftlint")
+  end
+  
   desc "Build for Carthage"
   lane :carthage_lint do
       Actions.sh("cd .. && carthage build --no-skip-current && cd fastlane")
@@ -36,6 +42,8 @@ platform :ios do
       target_version = options[:version]
       raise "The version is missed. Use `fastlane release version:{version_number}`.`" if target_version.nil?
 
+      upgrade_swift_lint
+
       ensure_git_branch
       ensure_git_status_clean