:: Add fastfile containing lanes

This commit is contained in:
Felix Mau
2020-02-07 18:14:33 +01:00
parent 27a6e0a9bd
commit fac3a404ce
3 changed files with 60 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
# apple_id("[[APPLE_ID]]") # Your Apple email address
# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile
+49
View File
@@ -0,0 +1,49 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:ios)
platform :ios do
desc "Execute SwiftFormat and treat any formatting errors as real errors."
lane :format do
swiftformat(executable: "Pods/SwiftFormat/CommandLineTool/swiftformat",
path: "../",
lint: true)
end
desc "Execute SwiftLint and treat any formatting errors as real errors."
lane :lint do
swiftlint(
config_file: ".swiftlint.yml",
strict: true,
executable: "Pods/SwiftLint/swiftlint"
)
end
desc "Execute tests."
lane :tests do
run_tests(workspace: "GradientLoadingBar.xcworkspace",
devices: ["iPhone 11 Pro"],
scheme: "GradientLoadingBar-Example")
end
desc "Execute validation of library."
lane :pod_lint do
Dir.chdir("..") do
# Move outside of `Example/` directory.
pod_lib_lint()
end
end
end
+5
View File
@@ -0,0 +1,5 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-swiftformat'