mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Introduce point_dependencies_to_* lanes for CI to use
This commit is contained in:
parent
34bfb4f9a9
commit
7410e6a88c
1 changed files with 17 additions and 0 deletions
|
@ -136,6 +136,14 @@ platform :ios do
|
|||
)
|
||||
end
|
||||
|
||||
lane :point_dependencies_to_pending_releases do
|
||||
edit_podfile(branch_pattern: "release/*/release")
|
||||
end
|
||||
|
||||
lane :point_dependencies_to_same_feature do
|
||||
edit_podfile(branch_pattern: git_branch)
|
||||
end
|
||||
|
||||
#### Private ####
|
||||
|
||||
desc "Download App Store or Ad-Hoc provisioning profiles"
|
||||
|
@ -270,4 +278,13 @@ platform :ios do
|
|||
scheme.save_as(project_path, scheme_name)
|
||||
end
|
||||
|
||||
desc "Edit the Podfile in order to point MatrixKit and MatrixSDK to the appropriate branches."
|
||||
private_lane :edit_podfile do |options|
|
||||
# Since MatrixSDK is a transitive dependency (brought by MatrixKit.podspec), modifying the Podfile won't be enough.
|
||||
# - So we need to make a copy of the MatrixKit.podspec (extracted from the right branch of the MatrixKit repo) locally first,
|
||||
# - then edit that local MatrixKit.podspec to change its dependency of MatrixSDK to point to the right branch of MatrixSDK too
|
||||
# - and finally edit the Podfile to point MatrixKit to that locally modified `MatrixKit.podspec` (itself opinting to the right MatrixSDK).
|
||||
#
|
||||
UI.message("This is supposed to make a local copy of MatrixKit.podspec from #{options[:branch_pattern]} branch, edit it to use the right MatrixSDK version, and point the Podfile to that local podspec. But that is not implemented yet...")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue