fastlane-plugin-bugsnag 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce569b7fba57418aa6216b66eafc6497d5b19ac2
|
4
|
+
data.tar.gz: 2cf21bbef1e8dc13ae3d6ab134671f7a36de8372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93bbcc3cf75560bf4f9f0a8ba5dceaab4712cd039a371c9ea25fd283dd8f46c5b97e7b579264f0b605a0923c6daf1ee98bf9d4648ec0f15ea178f78fa1a32678
|
7
|
+
data.tar.gz: c034020abc2ea9112fcbdbf458391e3d05fb3c2503170583aa3f16b422695eaf81be48c57d67f49b49be79569a543fdfd15fec6890cf5022bc9872f9578289bf
|
data/bugsnag-dsym-upload
CHANGED
@@ -101,7 +101,7 @@ if [[ ! -d $dsym_dir ]]; then
|
|
101
101
|
if [[ ! -x "$(command -v unzip 2>/dev/null)" ]]; then
|
102
102
|
exit_with_usage "unzip command not found."
|
103
103
|
fi
|
104
|
-
temp_dir=$(mktemp -dt "bugsnag-dsym-upload")
|
104
|
+
temp_dir=$(mktemp -dt "bugsnag-dsym-upload.XXX")
|
105
105
|
unzip -qq $dsym_dir -d $temp_dir
|
106
106
|
dsym_dir=$temp_dir
|
107
107
|
else
|
@@ -157,4 +157,5 @@ fi
|
|
157
157
|
|
158
158
|
if [ $fail_count -gt 0 ]; then
|
159
159
|
log "$fail_count files failed to upload"
|
160
|
+
exit 1
|
160
161
|
fi
|
@@ -8,9 +8,13 @@ module Fastlane
|
|
8
8
|
def self.run(params)
|
9
9
|
parse_dsym_paths(params[:dsym_path]).each do |dsym_path|
|
10
10
|
if dsym_path.end_with?(".zip") or File.directory?(dsym_path)
|
11
|
-
args = upload_args(dsym_path, params[:symbol_maps_path], params[:upload_url], params[:project_root])
|
11
|
+
args = upload_args(dsym_path, params[:symbol_maps_path], params[:upload_url], params[:project_root], params[:verbose])
|
12
12
|
success = Kernel.system(UPLOAD_SCRIPT_PATH, *args)
|
13
|
-
|
13
|
+
if success
|
14
|
+
UI.success("Uploaded dSYMs in #{dsym_path}")
|
15
|
+
else
|
16
|
+
UI.user_error!("Failed uploading #{dsym_path}")
|
17
|
+
end
|
14
18
|
else
|
15
19
|
UI.user_error!("The specified symbol file path cannot be used: #{dsym_path}")
|
16
20
|
end
|
@@ -78,14 +82,19 @@ module Fastlane
|
|
78
82
|
env_name: "BUGSNAG_PROJECT_ROOT",
|
79
83
|
description: "Root path of the project",
|
80
84
|
default_value: Dir::pwd,
|
81
|
-
optional: true)
|
85
|
+
optional: true),
|
86
|
+
FastlaneCore::ConfigItem.new(key: :verbose,
|
87
|
+
env_name: "BUGSNAG_VERBOSE",
|
88
|
+
description: "Print helpful debug info",
|
89
|
+
skip_type_validation: true,
|
90
|
+
optional: true),
|
82
91
|
]
|
83
92
|
end
|
84
93
|
|
85
94
|
private
|
86
95
|
|
87
|
-
def self.upload_args dir, symbol_maps_dir, upload_url, project_root
|
88
|
-
args = ["--silent"]
|
96
|
+
def self.upload_args dir, symbol_maps_dir, upload_url, project_root, verbose
|
97
|
+
args = [verbose ? "--verbose" : "--silent"]
|
89
98
|
args += ["--upload-server", upload_url] unless upload_url.nil?
|
90
99
|
args += ["--symbol-maps", symbol_maps_dir] unless symbol_maps_dir.nil?
|
91
100
|
args += ["--project-root", project_root] unless project_root.nil?
|
@@ -11,7 +11,20 @@ describe Action do
|
|
11
11
|
describe '#run' do
|
12
12
|
it 'silences script output by default' do
|
13
13
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
14
|
-
"--silent", FIXTURE_PATH)
|
14
|
+
"--silent", FIXTURE_PATH).and_return(true)
|
15
|
+
Action.run({dsym_path: FIXTURE_PATH})
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'prints verbose if verbose flag set' do
|
19
|
+
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
20
|
+
"--verbose", FIXTURE_PATH).and_return(true)
|
21
|
+
Action.run({dsym_path: FIXTURE_PATH, verbose: true})
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'UI.user_error when script fails' do
|
25
|
+
expect(Fastlane::UI).to receive(:user_error!).with("Failed uploading #{FIXTURE_PATH}")
|
26
|
+
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
27
|
+
"--silent", FIXTURE_PATH).and_return(false)
|
15
28
|
Action.run({dsym_path: FIXTURE_PATH})
|
16
29
|
end
|
17
30
|
|
@@ -30,14 +43,14 @@ describe Action do
|
|
30
43
|
it 'uploads a single .dSYM file' do
|
31
44
|
directory = File.join(FIXTURE_PATH, 'dSYMs')
|
32
45
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
33
|
-
"--silent", directory)
|
46
|
+
"--silent", directory).and_return(true)
|
34
47
|
Action.run({dsym_path: File.join(FIXTURE_PATH, 'dSYMs/app.dSYM')})
|
35
48
|
end
|
36
49
|
|
37
50
|
it 'uploads a .zip of .dSYM files' do
|
38
51
|
path = File.join(FIXTURE_PATH, 'files.zip')
|
39
52
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
40
|
-
"--silent", path)
|
53
|
+
"--silent", path).and_return(true)
|
41
54
|
Action.run({dsym_path: path})
|
42
55
|
end
|
43
56
|
|
@@ -45,9 +58,9 @@ describe Action do
|
|
45
58
|
zip1 = File.join(FIXTURE_PATH, 'files.zip')
|
46
59
|
zip2 = File.join(FIXTURE_PATH, 'more_files.zip')
|
47
60
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
48
|
-
"--silent", zip1)
|
61
|
+
"--silent", zip1).and_return(true)
|
49
62
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
50
|
-
"--silent", zip2)
|
63
|
+
"--silent", zip2).and_return(true)
|
51
64
|
Action.run({dsym_path: [zip1, zip2]})
|
52
65
|
end
|
53
66
|
|
@@ -58,9 +71,9 @@ describe Action do
|
|
58
71
|
dsym4 = File.join(FIXTURE_PATH, 'stuff/app2.dSYM')
|
59
72
|
directories = [File.join(FIXTURE_PATH, 'dSYMs'), File.join(FIXTURE_PATH, 'stuff')]
|
60
73
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
61
|
-
"--silent", directories[0])
|
74
|
+
"--silent", directories[0]).and_return(true)
|
62
75
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
63
|
-
"--silent", directories[1])
|
76
|
+
"--silent", directories[1]).and_return(true)
|
64
77
|
Action.run({dsym_path: [dsym1, dsym2, dsym3, dsym4]})
|
65
78
|
end
|
66
79
|
|
@@ -69,7 +82,7 @@ describe Action do
|
|
69
82
|
dsym2 = File.join(FIXTURE_PATH, 'dSYMs/app2.dSYM')
|
70
83
|
directory = File.join(FIXTURE_PATH, 'dSYMs')
|
71
84
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
72
|
-
"--silent", directory)
|
85
|
+
"--silent", directory).and_return(true)
|
73
86
|
Action.run({dsym_path: [dsym1, dsym2]})
|
74
87
|
end
|
75
88
|
|
@@ -78,7 +91,7 @@ describe Action do
|
|
78
91
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
79
92
|
"--silent",
|
80
93
|
"--project-root", root_path,
|
81
|
-
FIXTURE_PATH)
|
94
|
+
FIXTURE_PATH).and_return(true)
|
82
95
|
Action.run({dsym_path: FIXTURE_PATH, project_root: root_path})
|
83
96
|
end
|
84
97
|
|
@@ -87,7 +100,7 @@ describe Action do
|
|
87
100
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
88
101
|
"--silent",
|
89
102
|
"--upload-server", "http://myserver.example.com",
|
90
|
-
FIXTURE_PATH)
|
103
|
+
FIXTURE_PATH).and_return(true)
|
91
104
|
Action.run({dsym_path: FIXTURE_PATH,
|
92
105
|
upload_url: "http://myserver.example.com"})
|
93
106
|
end
|
@@ -99,7 +112,7 @@ describe Action do
|
|
99
112
|
expect(Kernel).to receive(:system).with(Action::UPLOAD_SCRIPT_PATH,
|
100
113
|
"--silent",
|
101
114
|
"--symbol-maps", path,
|
102
|
-
FIXTURE_PATH)
|
115
|
+
FIXTURE_PATH).and_return(true)
|
103
116
|
Action.run({dsym_path: FIXTURE_PATH, symbol_maps_path: path})
|
104
117
|
end
|
105
118
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delisa Mason
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-simple
|