2017-03-24 23:16:58 -07:00
|
|
|
default_platform :ios
|
|
|
|
|
|
|
|
|
|
platform :ios do
|
2019-06-08 14:56:29 -07:00
|
|
|
desc "Runs all tests"
|
2017-03-24 23:16:58 -07:00
|
|
|
lane :test do
|
2018-08-13 22:21:00 -07:00
|
|
|
run_tests()
|
2017-03-24 23:16:58 -07:00
|
|
|
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
|
2017-03-28 10:40:31 -07:00
|
|
|
create_keychain(
|
|
|
|
|
name: ENV["MATCH_KEYCHAIN_NAME"],
|
|
|
|
|
password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
|
|
|
|
default_keychain: true,
|
|
|
|
|
unlock: true,
|
|
|
|
|
timeout: 3600,
|
|
|
|
|
add_to_search_list: true
|
|
|
|
|
)
|
|
|
|
|
match(
|
|
|
|
|
type: "appstore",
|
2017-06-14 16:27:45 -07:00
|
|
|
app_identifier: "me.mssun.passforios",
|
|
|
|
|
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
|
|
|
|
|
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
|
|
|
|
readonly: true
|
|
|
|
|
)
|
|
|
|
|
match(
|
|
|
|
|
type: "appstore",
|
2017-06-25 14:54:16 +08:00
|
|
|
app_identifier: "me.mssun.passforios.find-login-action-extension",
|
2017-03-28 10:40:31 -07:00
|
|
|
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
|
|
|
|
|
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
|
|
|
|
readonly: true
|
|
|
|
|
)
|
2018-09-24 15:37:50 +08:00
|
|
|
match(
|
|
|
|
|
type: "appstore",
|
|
|
|
|
app_identifier: "me.mssun.passforios.auto-fill-credential-extension",
|
|
|
|
|
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
|
|
|
|
|
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
|
|
|
|
readonly: true
|
|
|
|
|
)
|
2020-03-18 22:48:29 -07:00
|
|
|
match(
|
|
|
|
|
type: "appstore",
|
|
|
|
|
app_identifier: "me.mssun.passforios.shortcuts",
|
|
|
|
|
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
|
|
|
|
|
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
|
|
|
|
readonly: true
|
|
|
|
|
)
|
2017-03-28 09:36:41 -07:00
|
|
|
increment_build_number(
|
2018-03-31 23:22:29 -07:00
|
|
|
build_number: latest_testflight_build_number(version: get_version_number(target: "pass"), initial_build_number: 0) + 1,
|
2017-03-28 09:36:41 -07:00
|
|
|
xcodeproj: "pass.xcodeproj"
|
|
|
|
|
)
|
2019-06-08 14:56:29 -07:00
|
|
|
build_app(
|
2018-08-13 20:15:56 -07:00
|
|
|
scheme: "pass",
|
|
|
|
|
verbose: true
|
|
|
|
|
)
|
2019-06-08 14:56:29 -07:00
|
|
|
upload_to_testflight(
|
2018-08-13 20:15:56 -07:00
|
|
|
skip_waiting_for_build_processing: true
|
|
|
|
|
)
|
2017-03-28 10:40:31 -07:00
|
|
|
mailgun(
|
|
|
|
|
postmaster: ENV["MY_POSTMASTER"],
|
|
|
|
|
apikey: ENV["MY_API_KEY"],
|
|
|
|
|
to: ENV["DESTINATION_EMAIL"],
|
|
|
|
|
from: ENV["EMAIL_FROM_NAME"],
|
|
|
|
|
reply_to: ENV["EMAIL_REPLY_TO"],
|
|
|
|
|
subject: "A new build of Pass for iOS has been uploaded",
|
|
|
|
|
success: true,
|
|
|
|
|
app_link: "https://github.com/mssun/passforios",
|
|
|
|
|
ci_build_link: "https://travis-ci.org/mssun/passforios",
|
|
|
|
|
message: "A new build has been uploaded by Travis CI.",
|
|
|
|
|
)
|
2017-03-24 23:16:58 -07:00
|
|
|
end
|
|
|
|
|
end
|