Commit 35d3d964 authored by Thierry's avatar Thierry

增加Fastlane支持

parent a44d0262
......@@ -14,7 +14,7 @@
buildForArchiving = "YES">
<BuildableReference
BuildableIdentifier = 'primary'
BlueprintIdentifier = '21F127F524A4A5E24D582BBA'
BlueprintIdentifier = '469EC35C4F97BD6E6B37FACB'
BlueprintName = 'GMPhobos'
ReferencedContainer = 'container:Pods.xcodeproj'
BuildableName = 'GMPhobos.framework'>
......
app_identifier "org.cocoapods.demo.GMPhobos-Example" # The bundle identifier of your app
apple_id "wanmeizhensuo@gmail.com" # Your Apple email address
team_id "86R4V3XFLU" # Developer Portal Team ID
# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/docs/Appfile.md
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
# 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`
# By default, fastlane will send which actions are used
# No personal data is shared, more information on https://github.com/fastlane/enhancer
# Uncomment the following line to opt out
# opt_out_usage
# 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 "1.64.0"
default_platform :ios
platform :ios do
before_all do
end
desc "Runs all the tests"
lane :test do
scan
end
desc "Release new version"
lane :release do |options|
target_version = options[:version]
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) # 设置版本号
version_bump_podspec(path: "Kingfisher.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 # 提交到 CocoaPods
end
end
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
fastlane documentation
================
# Installation
```
sudo gem install fastlane
```
# Available Actions
## iOS
### ios test
```
fastlane ios test
```
Runs all the tests
### ios release
```
fastlane ios release
```
Release new version
----
This README.md is auto-generated and will be re-generated every time to run [fastlane](https://fastlane.tools).
More information about fastlane can be found on [https://fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [GitHub](https://github.com/fastlane/fastlane).
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="fastlane.lanes">
<testcase classname="fastlane.lanes" name="0: Verifying required fastlane version" time="0.000431">
</testcase>
<testcase classname="fastlane.lanes" name="1: default_platform" time="0.000355">
</testcase>
<testcase classname="fastlane.lanes" name="2: ensure_git_branch" time="0.008483">
</testcase>
<testcase classname="fastlane.lanes" name="3: ensure_git_status_clean" time="0.010237">
<failure message="/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/actions/actions_helper.rb:33:in `execute_action'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/runner.rb:129:in `block in execute_action'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/runner.rb:128:in `chdir'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/runner.rb:128:in `execute_action'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/fast_file.rb:149:in `method_missing'&#10;Fastfile:38:in `block (2 levels) in parsing_binding'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/lane.rb:36:in `call'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/lane.rb:36:in `call'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/runner.rb:52:in `block in execute'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/runner.rb:46:in `chdir'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/runner.rb:46:in `execute'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/lib/fastlane/command_line_handler.rb:30:in `handle'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/bin/fastlane:38:in `block (2 levels) in run'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane_core-0.37.0/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/bin/fastlane:156:in `run'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1@global/gems/fastlane-1.64.0/bin/fastlane:162:in `&lt;top (required)&gt;'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1/bin/fastlane:23:in `load'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1/bin/fastlane:23:in `&lt;main&gt;'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'&#10;/Users/Thierry/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `&lt;main&gt;'&#10;&#10;[31mGit repository is dirty! Please ensure the repo is in a clean state by commiting/stashing/discarding all changes first.[0m" />
</testcase>
</testsuite>
</testsuites>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment