Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
2ea366b4
Commit
2ea366b4
authored
Mar 09, 2016
by
Thierry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change file
parent
0e03d480
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Fastfile
fastlane/Fastfile
+11
-11
No files found.
fastlane/Fastfile
View file @
2ea366b4
...
...
@@ -33,21 +33,21 @@ platform :ios do
desc "Release new version"
lane :release do |options|
target_version = options[:version]
#
pod_install
#
pod_lint(verbose: true, allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"])
#
raise "The version is missed." if target_version.nil?
#
ensure_git_branch # 确认 master 分支
#
ensure_git_status_clean # 确认没有未提交的文件
pod_install
pod_lint(verbose: true, allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"])
raise "The version is missed." if target_version.nil?
ensure_git_branch # 确认 master 分支
ensure_git_status_clean # 确认没有未提交的文件
#scan # 运行测试
#sync_build_number_to_git # 将 build 号设为 git commit 数
increment_version_number(version_number: target_version) # 设置版本号
#
increment_version_number(version_number: target_version) # 设置版本号
#
version_bump_podspec(path: "GMPhobos.podspec", version_number: target_version) # 更新 podspec
#
git_commit_all(message: "Bump version to #{target_version}") # 提交版本号修改
#
add_git_tag tag: target_version # 设置 tag
#
push_to_git_remote # 推送到 git 仓库
#
pod_push(path: "GMPhobos.podspec", repo: "GMSpecs", allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"]) # 提交到 CocoaPods
version_bump_podspec(path: "GMPhobos.podspec", version_number: target_version) # 更新 podspec
git_commit_all(message: "Bump version to #{target_version}") # 提交版本号修改
add_git_tag tag: target_version # 设置 tag
push_to_git_remote # 推送到 git 仓库
pod_push(path: "GMPhobos.podspec", repo: "GMSpecs", allow_warnings: true, sources: ["git@git.gengmei.cc:gengmeiios/GMSpecs.git","https://github.com/CocoaPods/Specs"]) # 提交到 CocoaPods
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment