This commit is contained in:
Bob Sun 2017-03-24 23:16:58 -07:00
parent 93060a7b77
commit 3ccb8e4cb0
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
9 changed files with 372 additions and 3 deletions

76
fastlane/Fastfile Normal file
View file

@ -0,0 +1,76 @@
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://docs.fastlane.tools/actions
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "2.17.0"
default_platform :ios
platform :ios do
before_all do
cocoapods
carthage(platform: "iOS")
end
desc "Runs all the tests"
lane :test do
scan(scheme: "pass")
end
desc "Submit a new Beta Build to Apple TestFlight"
desc "This will also make sure the profile is up to date"
lane :beta do
# match(type: "appstore") # more information: https://codesigning.guide
ensure_git_status_clean
increment_build_number(xcodeproj: "pass.xcodeproj")
commit_version_bump(xcodeproj: "pass.xcodeproj")
push_to_git_remote
gym(scheme: "pass") # Build your app - more options available
pilot(skip_waiting_for_build_processing: true)
# sh "your_script.sh"
# You can also use other beta testing services here (run `fastlane actions`)
end
desc "Deploy a new version to the App Store"
lane :release do
# match(type: "appstore")
# snapshot
gym(scheme: "pass") # Build your app - more options available
deliver(force: true)
# frameit
end
# You can define as many lanes as you want
after_all do |lane|
# This block is called, only if the executed lane was successful
# slack(
# message: "Successfully deployed new App Update."
# )
end
error do |lane, exception|
# slack(
# message: exception.message,
# success: false
# )
end
end
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://docs.fastlane.tools/actions
# fastlane reports which actions are used
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer