aodb/build/fastlane/Fastlane
Martin Donnelly afe73b5baa upload
2016-12-22 00:00:06 +00:00

68 lines
1.5 KiB
Plaintext

# Shamelessly taken from here: https://github.com/xinbenlv/rent.zzn.im/tree/master/haoshiyou/fastlane
# A fastlane file, see https://fastlane.tools/ for reference
# Update fastlane automatically if a new version is available:
update_fastlane
fastlane_version "1.106.2"
ios_project_path = "platforms/ios/haoshiyou.xcodeproj"
before_all do
ENV["SLACK_URL"] =
"https://hooks.slack.com/services/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"
end
private_lane :increment_version do
sh("node scripts/increment_build_number.js")
end
desc "Do a new iOS build using ionic."
private_lane :ionic_ios_build do
sh("ionic build ios --release")
endl
desc "Do a new iOS deploy using sigh and gym"
private_lane :ios_deploy do
sigh
gym(
scheme: "haoshiyou",
project: ios_project_path)
end
desc "Do a new iOS upload to iTunes Connect using deliver."
private_lane :ios_upload do
deliver(force: true)
slack(message: "Successfully deployed to iTunes Connect at Version " +
"#{get_version_number(xcodeproj:ios_project_path)}.")
end
platform :ios do
desc "Deploy a new version to the App Store/"
lane :deploy do
increment_version
ionic_ios_build
ios_deploy
ios_upload
end
end
desc "Deploy to all platforms."
lane :deploy_all do |options|
increment_version
ionic_ios_build
ios_deploy
ios_upload
end
# TODO(zzn):
# - 1. add deployment for web
# - 2. merge web flow into deploy_all
# - 3. add other workflows: test, pilot, prod
# - 4. add support "dev" scheme