fastlane 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/fastlane +10 -3
- data/lib/assets/FastfileTemplate +52 -46
- data/lib/fastlane.rb +1 -0
- data/lib/fastlane/action.rb +14 -0
- data/lib/fastlane/actions/actions_helper.rb +1 -0
- data/lib/fastlane/actions/add_git_tag.rb +4 -0
- data/lib/fastlane/actions/cert.rb +4 -0
- data/lib/fastlane/actions/clean_build_artifacts.rb +4 -0
- data/lib/fastlane/actions/commit_version_bump.rb +4 -0
- data/lib/fastlane/actions/crashlytics.rb +5 -0
- data/lib/fastlane/actions/default_platform.rb +31 -0
- data/lib/fastlane/actions/deliver.rb +4 -0
- data/lib/fastlane/actions/deploygate.rb +4 -0
- data/lib/fastlane/actions/ensure_git_status_clean.rb +4 -0
- data/lib/fastlane/actions/fastlane_version.rb +4 -0
- data/lib/fastlane/actions/frameit.rb +4 -0
- data/lib/fastlane/actions/gcovr.rb +4 -0
- data/lib/fastlane/actions/hipchat.rb +4 -0
- data/lib/fastlane/actions/hockey.rb +4 -0
- data/lib/fastlane/actions/increment_build_number.rb +4 -0
- data/lib/fastlane/actions/increment_version_number.rb +4 -0
- data/lib/fastlane/actions/install_carthage.rb +4 -0
- data/lib/fastlane/actions/install_cocapods.rb +4 -0
- data/lib/fastlane/actions/ipa.rb +10 -0
- data/lib/fastlane/actions/notify.rb +4 -0
- data/lib/fastlane/actions/opt_out_usage.rb +4 -0
- data/lib/fastlane/actions/pem.rb +4 -2
- data/lib/fastlane/actions/produce.rb +4 -0
- data/lib/fastlane/actions/push_to_git_remote.rb +4 -0
- data/lib/fastlane/actions/register_devices.rb +4 -0
- data/lib/fastlane/actions/reset_git_repo.rb +4 -0
- data/lib/fastlane/actions/resign.rb +4 -0
- data/lib/fastlane/actions/s3.rb +4 -0
- data/lib/fastlane/actions/say.rb +4 -0
- data/lib/fastlane/actions/sigh.rb +4 -0
- data/lib/fastlane/actions/slack.rb +79 -66
- data/lib/fastlane/actions/snapshot.rb +4 -0
- data/lib/fastlane/actions/team_id.rb +4 -0
- data/lib/fastlane/actions/team_name.rb +4 -0
- data/lib/fastlane/actions/testmunk.rb +4 -0
- data/lib/fastlane/actions/typetalk.rb +4 -0
- data/lib/fastlane/actions/update_project_code_signing.rb +4 -0
- data/lib/fastlane/actions/xcode_select.rb +4 -0
- data/lib/fastlane/actions/xcodebuild.rb +24 -0
- data/lib/fastlane/actions/xctool.rb +4 -0
- data/lib/fastlane/docs_generator.rb +37 -17
- data/lib/fastlane/fast_file.rb +100 -42
- data/lib/fastlane/lane_manager.rb +80 -40
- data/lib/fastlane/runner.rb +71 -27
- data/lib/fastlane/supported_platforms.rb +18 -0
- data/lib/fastlane/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cbac227e095ab139acfcf394f2607bb1da0ae82
|
4
|
+
data.tar.gz: 7f41df9446553d5c0bf1d1ead4a872cbdb169933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cffeeee93a8a855fb5f5c5dca44cba393c0304d4a2b9c79816ec4107835f997ae1112fd9b3f324a7a919a91a142cf7fb7f7685b246cb705239252ca35db13378
|
7
|
+
data.tar.gz: 1752557d250037e80eb7b583050aa24226cb1875d85420fd4b8cbe45a09fb73c5f9bd764f4e1eb7bb29723adf9777059d497bee919b4b5050998b3693412c78a
|
data/bin/fastlane
CHANGED
@@ -4,7 +4,6 @@ $LOAD_PATH.push File.expand_path('../../lib', __FILE__)
|
|
4
4
|
|
5
5
|
require 'fastlane'
|
6
6
|
require 'commander'
|
7
|
-
require 'dotenv'
|
8
7
|
require 'fastlane/new_action'
|
9
8
|
|
10
9
|
HighLine.track_eof = false
|
@@ -24,12 +23,20 @@ class FastlaneApplication
|
|
24
23
|
|
25
24
|
command :run do |c|
|
26
25
|
c.syntax = 'fastlane run [lane]'
|
27
|
-
c.description = 'Drive the fastlane for a specific environment.'
|
26
|
+
c.description = 'Drive the fastlane for a specific environment. Pass the lane name and optionally the platform first'
|
28
27
|
c.option '--env STRING', String, 'Add environment to use with `dotenv`'
|
29
28
|
|
30
29
|
c.action do |args, _options|
|
31
30
|
if Fastlane::FastlaneFolder.path
|
32
|
-
|
31
|
+
platform = nil
|
32
|
+
lane = args[1]
|
33
|
+
if lane
|
34
|
+
platform = args[0]
|
35
|
+
else
|
36
|
+
lane = args[0]
|
37
|
+
end
|
38
|
+
|
39
|
+
Fastlane::LaneManager.cruise_lane(platform, lane, _options.env)
|
33
40
|
else
|
34
41
|
create = agree('Could not find fastlane in current directory. Would you like to set it up? (y/n)'.yellow, true)
|
35
42
|
Fastlane::Setup.new.run if create
|
data/lib/assets/FastfileTemplate
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Customise this file, documentation can be found here:
|
2
|
-
# https://github.com/
|
2
|
+
# https://github.com/KrauseFx/fastlane/tree/master/docs
|
3
3
|
|
4
4
|
# Change the syntax highlighting to Ruby
|
5
5
|
# All lines starting with a # are ignored when running `fastlane`
|
@@ -13,62 +13,68 @@
|
|
13
13
|
# Update this, if you use features of a newer version
|
14
14
|
fastlane_version "[[FASTLANE_VERSION]]"
|
15
15
|
|
16
|
-
|
17
|
-
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
|
16
|
+
default_platform :ios
|
18
17
|
|
19
|
-
# sh "./customShellScript.sh"
|
20
18
|
|
21
|
-
|
19
|
+
platform :ios do
|
22
20
|
|
23
|
-
|
21
|
+
before_all do
|
22
|
+
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
|
24
23
|
|
25
|
-
|
24
|
+
cocoapods
|
26
25
|
|
27
|
-
|
28
|
-
end
|
26
|
+
# increment_build_number
|
29
27
|
|
30
|
-
|
31
|
-
lane :test do
|
32
|
-
snapshot
|
33
|
-
end
|
28
|
+
ipa
|
34
29
|
|
35
|
-
|
36
|
-
|
37
|
-
lane :beta do
|
38
|
-
snapshot
|
39
|
-
sigh
|
40
|
-
deliver :skip_deploy, :beta
|
41
|
-
# sh "your_script.sh"
|
42
|
-
# You can use other beta testing services here
|
43
|
-
end
|
30
|
+
xctool
|
31
|
+
end
|
44
32
|
|
45
|
-
desc "
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
sigh
|
50
|
-
deliver :skip_deploy, :force
|
51
|
-
# frameit
|
52
|
-
end
|
33
|
+
desc "Runs all the tests"
|
34
|
+
lane :test do
|
35
|
+
snapshot
|
36
|
+
end
|
53
37
|
|
54
|
-
desc "
|
55
|
-
|
56
|
-
|
57
|
-
|
38
|
+
desc "Submit a new Beta Build to Apple TestFlight"
|
39
|
+
desc "This will also make sure the profile is up to date"
|
40
|
+
lane :beta do
|
41
|
+
snapshot
|
42
|
+
sigh
|
43
|
+
deliver :skip_deploy, :beta
|
58
44
|
|
59
|
-
#
|
45
|
+
# sh "your_script.sh"
|
46
|
+
# You can also use other beta testing services here
|
47
|
+
end
|
60
48
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
end
|
49
|
+
desc "Deploy a new version to the App Store"
|
50
|
+
desc "** Full Markdown** Support: `code`"
|
51
|
+
lane :deploy do
|
52
|
+
snapshot
|
53
|
+
sigh
|
54
|
+
deliver :skip_deploy, :force
|
55
|
+
# frameit
|
56
|
+
end
|
70
57
|
|
58
|
+
# You can define as many lanes as you want
|
59
|
+
|
60
|
+
after_all do |lane|
|
61
|
+
# This block is called, only if the executed lane was successful
|
62
|
+
|
63
|
+
# slack({
|
64
|
+
# message: "Successfully deployed new App Update."
|
65
|
+
# })
|
66
|
+
end
|
67
|
+
|
68
|
+
|
69
|
+
error do |lane, exception|
|
70
|
+
# slack({
|
71
|
+
# message: exception.message
|
72
|
+
# success: false
|
73
|
+
# })
|
74
|
+
end
|
71
75
|
|
72
|
-
error do |lane, exception|
|
73
|
-
# Something bad happened
|
74
76
|
end
|
77
|
+
|
78
|
+
|
79
|
+
# More information about multiple platforms in fastlane:
|
80
|
+
# https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md
|
data/lib/fastlane.rb
CHANGED
data/lib/fastlane/action.rb
CHANGED
@@ -6,6 +6,7 @@ module Fastlane
|
|
6
6
|
|
7
7
|
end
|
8
8
|
|
9
|
+
# Implement in subclasses
|
9
10
|
def self.description
|
10
11
|
"No description provided".red
|
11
12
|
end
|
@@ -36,6 +37,19 @@ module Fastlane
|
|
36
37
|
"KrauseFx"
|
37
38
|
end
|
38
39
|
|
40
|
+
def self.is_supported?(platform)
|
41
|
+
# you do things like
|
42
|
+
# true
|
43
|
+
#
|
44
|
+
# platform == :ios
|
45
|
+
#
|
46
|
+
# [:ios, :android].include?platform
|
47
|
+
#
|
48
|
+
raise "Implementing `is_supported?` for all actions is mandatory. Please update #{self}".red
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
|
39
53
|
# to allow a simple `sh` in the custom actions
|
40
54
|
def self.sh(command)
|
41
55
|
Fastlane::Actions.sh(command)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
DEFAULT_PLATFORM = :DEFAULT_PLATFORM
|
5
|
+
end
|
6
|
+
|
7
|
+
class DefaultPlatformAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
raise "You forgot to pass the default platform".red if params.first.nil?
|
10
|
+
|
11
|
+
platform = params.first.to_sym
|
12
|
+
|
13
|
+
SupportedPlatforms.verify!platform
|
14
|
+
|
15
|
+
Actions.lane_context[SharedValues::DEFAULT_PLATFORM] = platform
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.description
|
19
|
+
"Defines a default platform to not have to specify the platform"
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.author
|
23
|
+
"KrauseFx"
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.is_supported?(platform)
|
27
|
+
true
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -13,6 +13,10 @@ module Fastlane
|
|
13
13
|
class DeploygateAction < Action
|
14
14
|
DEPLOYGATE_URL_BASE = 'https://deploygate.com'
|
15
15
|
|
16
|
+
def self.is_supported?(platform)
|
17
|
+
platform == :ios
|
18
|
+
end
|
19
|
+
|
16
20
|
def self.run(params)
|
17
21
|
require 'shenzhen'
|
18
22
|
require 'shenzhen/plugins/deploygate'
|
@@ -7,6 +7,10 @@ module Fastlane
|
|
7
7
|
class IncrementBuildNumberAction < Action
|
8
8
|
require 'shellwords'
|
9
9
|
|
10
|
+
def self.is_supported?(platform)
|
11
|
+
platform == :ios
|
12
|
+
end
|
13
|
+
|
10
14
|
def self.run(params)
|
11
15
|
# More information about how to set up your project and how it works:
|
12
16
|
# https://developer.apple.com/library/ios/qa/qa1827/_index.html
|
@@ -7,6 +7,10 @@ module Fastlane
|
|
7
7
|
class IncrementVersionNumberAction < Action
|
8
8
|
require 'shellwords'
|
9
9
|
|
10
|
+
def self.is_supported?(platform)
|
11
|
+
platform == :ios
|
12
|
+
end
|
13
|
+
|
10
14
|
def self.run(params)
|
11
15
|
# More information about how to set up your project and how it works:
|
12
16
|
# https://developer.apple.com/library/ios/qa/qa1827/_index.html
|
data/lib/fastlane/actions/ipa.rb
CHANGED
@@ -35,6 +35,12 @@ module Fastlane
|
|
35
35
|
}
|
36
36
|
|
37
37
|
class IpaAction < Action
|
38
|
+
|
39
|
+
def self.is_supported?(platform)
|
40
|
+
platform == :ios
|
41
|
+
end
|
42
|
+
|
43
|
+
|
38
44
|
def self.run(params)
|
39
45
|
# The args we will build with
|
40
46
|
build_args = nil
|
@@ -59,6 +65,10 @@ module Fastlane
|
|
59
65
|
build_args = params
|
60
66
|
end
|
61
67
|
|
68
|
+
unless (params.first[:scheme] rescue nil)
|
69
|
+
Helper.log.warn "You haven't specified a scheme. This might cause problems. If you can't see any outupt, please pass a `scheme`"
|
70
|
+
end
|
71
|
+
|
62
72
|
# If no dest directory given, default to current directory
|
63
73
|
absolute_dest_directory ||= Dir.pwd
|
64
74
|
|