瀏覽代碼

@liuql6 @fastlane集成测试

liuql6 3 年之前
父節點
當前提交
84fa57ca7f

+ 3 - 0
display-center/Gemfile

@ -0,0 +1,3 @@
1
source "https://rubygems.org"
2
3
gem "fastlane"

+ 214 - 0
display-center/Gemfile.lock

@ -0,0 +1,214 @@
1
GEM
2
  remote: https://rubygems.org/
3
  specs:
4
    CFPropertyList (3.0.5)
5
      rexml
6
    addressable (2.8.0)
7
      public_suffix (>= 2.0.2, < 5.0)
8
    artifactory (3.0.15)
9
    atomos (0.1.3)
10
    aws-eventstream (1.2.0)
11
    aws-partitions (1.530.0)
12
    aws-sdk-core (3.122.1)
13
      aws-eventstream (~> 1, >= 1.0.2)
14
      aws-partitions (~> 1, >= 1.525.0)
15
      aws-sigv4 (~> 1.1)
16
      jmespath (~> 1.0)
17
    aws-sdk-kms (1.51.0)
18
      aws-sdk-core (~> 3, >= 3.122.0)
19
      aws-sigv4 (~> 1.1)
20
    aws-sdk-s3 (1.105.1)
21
      aws-sdk-core (~> 3, >= 3.122.0)
22
      aws-sdk-kms (~> 1)
23
      aws-sigv4 (~> 1.4)
24
    aws-sigv4 (1.4.0)
25
      aws-eventstream (~> 1, >= 1.0.2)
26
    babosa (1.0.4)
27
    claide (1.0.3)
28
    colored (1.2)
29
    colored2 (3.1.2)
30
    commander (4.6.0)
31
      highline (~> 2.0.0)
32
    declarative (0.0.20)
33
    digest-crc (0.6.4)
34
      rake (>= 12.0.0, < 14.0.0)
35
    domain_name (0.5.20190701)
36
      unf (>= 0.0.5, < 1.0.0)
37
    dotenv (2.7.6)
38
    emoji_regex (3.2.3)
39
    excon (0.88.0)
40
    faraday (1.8.0)
41
      faraday-em_http (~> 1.0)
42
      faraday-em_synchrony (~> 1.0)
43
      faraday-excon (~> 1.1)
44
      faraday-httpclient (~> 1.0.1)
45
      faraday-net_http (~> 1.0)
46
      faraday-net_http_persistent (~> 1.1)
47
      faraday-patron (~> 1.0)
48
      faraday-rack (~> 1.0)
49
      multipart-post (>= 1.2, < 3)
50
      ruby2_keywords (>= 0.0.4)
51
    faraday-cookie_jar (0.0.7)
52
      faraday (>= 0.8.0)
53
      http-cookie (~> 1.0.0)
54
    faraday-em_http (1.0.0)
55
    faraday-em_synchrony (1.0.0)
56
    faraday-excon (1.1.0)
57
    faraday-httpclient (1.0.1)
58
    faraday-net_http (1.0.1)
59
    faraday-net_http_persistent (1.2.0)
60
    faraday-patron (1.0.0)
61
    faraday-rack (1.0.0)
62
    faraday_middleware (1.2.0)
63
      faraday (~> 1.0)
64
    fastimage (2.2.5)
65
    fastlane (2.197.0)
66
      CFPropertyList (>= 2.3, < 4.0.0)
67
      addressable (>= 2.8, < 3.0.0)
68
      artifactory (~> 3.0)
69
      aws-sdk-s3 (~> 1.0)
70
      babosa (>= 1.0.3, < 2.0.0)
71
      bundler (>= 1.12.0, < 3.0.0)
72
      colored
73
      commander (~> 4.6)
74
      dotenv (>= 2.1.1, < 3.0.0)
75
      emoji_regex (>= 0.1, < 4.0)
76
      excon (>= 0.71.0, < 1.0.0)
77
      faraday (~> 1.0)
78
      faraday-cookie_jar (~> 0.0.6)
79
      faraday_middleware (~> 1.0)
80
      fastimage (>= 2.1.0, < 3.0.0)
81
      gh_inspector (>= 1.1.2, < 2.0.0)
82
      google-apis-androidpublisher_v3 (~> 0.3)
83
      google-apis-playcustomapp_v1 (~> 0.1)
84
      google-cloud-storage (~> 1.31)
85
      highline (~> 2.0)
86
      json (< 3.0.0)
87
      jwt (>= 2.1.0, < 3)
88
      mini_magick (>= 4.9.4, < 5.0.0)
89
      multipart-post (~> 2.0.0)
90
      naturally (~> 2.2)
91
      optparse (~> 0.1.1)
92
      plist (>= 3.1.0, < 4.0.0)
93
      rubyzip (>= 2.0.0, < 3.0.0)
94
      security (= 0.1.3)
95
      simctl (~> 1.6.3)
96
      terminal-notifier (>= 2.0.0, < 3.0.0)
97
      terminal-table (>= 1.4.5, < 2.0.0)
98
      tty-screen (>= 0.6.3, < 1.0.0)
99
      tty-spinner (>= 0.8.0, < 1.0.0)
100
      word_wrap (~> 1.0.0)
101
      xcodeproj (>= 1.13.0, < 2.0.0)
102
      xcpretty (~> 0.3.0)
103
      xcpretty-travis-formatter (>= 0.0.3)
104
    gh_inspector (1.1.3)
105
    google-apis-androidpublisher_v3 (0.13.0)
106
      google-apis-core (>= 0.4, < 2.a)
107
    google-apis-core (0.4.1)
108
      addressable (~> 2.5, >= 2.5.1)
109
      googleauth (>= 0.16.2, < 2.a)
110
      httpclient (>= 2.8.1, < 3.a)
111
      mini_mime (~> 1.0)
112
      representable (~> 3.0)
113
      retriable (>= 2.0, < 4.a)
114
      rexml
115
      webrick
116
    google-apis-iamcredentials_v1 (0.8.0)
117
      google-apis-core (>= 0.4, < 2.a)
118
    google-apis-playcustomapp_v1 (0.6.0)
119
      google-apis-core (>= 0.4, < 2.a)
120
    google-apis-storage_v1 (0.9.0)
121
      google-apis-core (>= 0.4, < 2.a)
122
    google-cloud-core (1.6.0)
123
      google-cloud-env (~> 1.0)
124
      google-cloud-errors (~> 1.0)
125
    google-cloud-env (1.5.0)
126
      faraday (>= 0.17.3, < 2.0)
127
    google-cloud-errors (1.2.0)
128
    google-cloud-storage (1.34.1)
129
      addressable (~> 2.5)
130
      digest-crc (~> 0.4)
131
      google-apis-iamcredentials_v1 (~> 0.1)
132
      google-apis-storage_v1 (~> 0.1)
133
      google-cloud-core (~> 1.6)
134
      googleauth (>= 0.16.2, < 2.a)
135
      mini_mime (~> 1.0)
136
    googleauth (1.1.0)
137
      faraday (>= 0.17.3, < 2.0)
138
      jwt (>= 1.4, < 3.0)
139
      memoist (~> 0.16)
140
      multi_json (~> 1.11)
141
      os (>= 0.9, < 2.0)
142
      signet (>= 0.16, < 2.a)
143
    highline (2.0.3)
144
    http-cookie (1.0.4)
145
      domain_name (~> 0.5)
146
    httpclient (2.8.3)
147
    jmespath (1.4.0)
148
    json (2.6.1)
149
    jwt (2.3.0)
150
    memoist (0.16.2)
151
    mini_magick (4.11.0)
152
    mini_mime (1.1.2)
153
    multi_json (1.15.0)
154
    multipart-post (2.0.0)
155
    nanaimo (0.3.0)
156
    naturally (2.2.1)
157
    optparse (0.1.1)
158
    os (1.1.4)
159
    plist (3.6.0)
160
    public_suffix (4.0.6)
161
    rake (13.0.6)
162
    representable (3.1.1)
163
      declarative (< 0.1.0)
164
      trailblazer-option (>= 0.1.1, < 0.2.0)
165
      uber (< 0.2.0)
166
    retriable (3.1.2)
167
    rexml (3.2.5)
168
    rouge (2.0.7)
169
    ruby2_keywords (0.0.5)
170
    rubyzip (2.3.2)
171
    security (0.1.3)
172
    signet (0.16.0)
173
      addressable (~> 2.8)
174
      faraday (>= 0.17.3, < 2.0)
175
      jwt (>= 1.5, < 3.0)
176
      multi_json (~> 1.10)
177
    simctl (1.6.8)
178
      CFPropertyList
179
      naturally
180
    terminal-notifier (2.0.0)
181
    terminal-table (1.8.0)
182
      unicode-display_width (~> 1.1, >= 1.1.1)
183
    trailblazer-option (0.1.2)
184
    tty-cursor (0.7.1)
185
    tty-screen (0.8.1)
186
    tty-spinner (0.9.3)
187
      tty-cursor (~> 0.7)
188
    uber (0.1.0)
189
    unf (0.1.4)
190
      unf_ext
191
    unf_ext (0.0.8)
192
    unicode-display_width (1.8.0)
193
    webrick (1.7.0)
194
    word_wrap (1.0.0)
195
    xcodeproj (1.21.0)
196
      CFPropertyList (>= 2.3.3, < 4.0)
197
      atomos (~> 0.1.3)
198
      claide (>= 1.0.2, < 2.0)
199
      colored2 (~> 3.1)
200
      nanaimo (~> 0.3.0)
201
      rexml (~> 3.2.4)
202
    xcpretty (0.3.0)
203
      rouge (~> 2.0.7)
204
    xcpretty-travis-formatter (1.0.1)
205
      xcpretty (~> 0.2, >= 0.0.7)
206
207
PLATFORMS
208
  ruby
209
210
DEPENDENCIES
211
  fastlane
212
213
BUNDLED WITH
214
   1.17.2

二進制
display-center/display-center.xcworkspace/xcuserdata/benny.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 0
display-center/fastlane/.env.default

@ -0,0 +1 @@
1
BRANCH:dev

+ 7 - 0
display-center/fastlane/Appfile

@ -0,0 +1,7 @@
1
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
2
# apple_id("[[APPLE_ID]]") # Your Apple email address
3
4
5
# For more information about the Appfile, see:
6
#     https://docs.fastlane.tools/advanced/#appfile
7
branch ENV['BRANCH']

+ 55 - 0
display-center/fastlane/Fastfile

@ -0,0 +1,55 @@
1
# This file contains the fastlane.tools configuration
2
# You can find the documentation at https://docs.fastlane.tools
3
#
4
# For a list of all available actions, check out
5
#
6
#     https://docs.fastlane.tools/actions
7
#
8
# For a list of all available plugins, check out
9
#
10
#     https://docs.fastlane.tools/plugins/available-plugins
11
#
12
13
# Uncomment the line if you want fastlane to automatically update itself
14
# update_fastlane
15
16
default_platform(:ios)
17
18
platform :ios do
19
  desc "Description of what the lane does"
20
  lane :custom_lane do
21
    # add actions here: https://docs.fastlane.tools/actions
22
  end
23
24
  # 所有lane之前
25
  before_all do |lane, options|
26
27
  end  
28
29
  # 所有lane执行完成后
30
  after_all do |lane|
31
32
  end
33
34
  # lane失败之后
35
  error do |lane, exception|
36
  
37
  end
38
39
  lane :source_control do |lane, options|
40
  	branch= CredentialsManager::AppfileConfig.try_fetch_value(:branch)
41
	ensure_git_status_clean # 如果当前工作空间还有未提交的内容就会抛出异常
42
	
43
	# 如果当前分支不是 指定的分支 将会抛出异常
44
	ensure_git_branch(
45
     		 branch: branch
46
    	)
47
  end
48
49
end
50
51
52
53
54
55

+ 34 - 0
display-center/fastlane/README.md

@ -0,0 +1,34 @@
1
fastlane documentation
2
================
3
# Installation
4
5
Make sure you have the latest version of the Xcode command line tools installed:
6
7
```
8
xcode-select --install
9
```
10
11
Install _fastlane_ using
12
```
13
[sudo] gem install fastlane -NV
14
```
15
or alternatively using `brew install fastlane`
16
17
# Available Actions
18
## iOS
19
### ios custom_lane
20
```
21
fastlane ios custom_lane
22
```
23
Description of what the lane does
24
### ios source_control
25
```
26
fastlane ios source_control
27
```
28
29
30
----
31
32
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
33
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
34
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).

+ 20 - 0
display-center/fastlane/report.xml

@ -0,0 +1,20 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<testsuites>
3
  <testsuite name="fastlane.lanes">
4
    
5
    
6
    
7
      
8
      <testcase classname="fastlane.lanes" name="0: default_platform" time="0.000366">
9
        
10
      </testcase>
11
    
12
      
13
      <testcase classname="fastlane.lanes" name="1: ensure_git_status_clean" time="0.867486">
14
        
15
          <failure message="/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/actions/actions_helper.rb:67:in `execute_action&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/runner.rb:229:in `chdir&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing&apos;&#10;Fastfile:41:in `block (2 levels) in parsing_binding&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/lane.rb:33:in `call&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/runner.rb:45:in `chdir&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/runner.rb:45:in `execute&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in `call&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in `run&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/commands_generator.rb:353:in `run&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/gems/fastlane-2.191.0/bin/fastlane:23:in `&lt;top (required)&gt;&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/bin/fastlane:23:in `load&apos;&#10;/usr/local/Cellar/fastlane/2.191.0/libexec/bin/fastlane:23:in `&lt;main&gt;&apos;&#10;&#10;Git repository is dirty! Please ensure the repo is in a clean state by committing/stashing/discarding all changes first." />
16
        
17
      </testcase>
18
    
19
  </testsuite>
20
</testsuites>