fastlane 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/fastlane/actions/actions_helper.rb +1 -0
- data/lib/fastlane/actions/slack.rb +38 -0
- data/lib/fastlane/runner.rb +1 -0
- data/lib/fastlane/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dda26c230bd671d631a72ef0634fdd899bbfbc0b
|
4
|
+
data.tar.gz: ffcfef90c6e7211d1418742f7dc43e6450eadaaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 237085c5eac6d47945ee436f6e75c6b6c4ac5189e11ecd17b4ffd48a09cc347b96f4c691e41b7d64836009a698a1b03e8347e6d8bd29c049c86363ca0a62114c
|
7
|
+
data.tar.gz: 627d308fd09da4e3ad72985fd6fc15b698daa7fa97619a151f155ffcd1b1ff28e36e7512ab75d7019762a93c0aa008472b45fbfcad67ba58c39d7eb685964e08
|
data/README.md
CHANGED
@@ -324,8 +324,6 @@ jenkins
|
|
324
324
|
|
325
325
|
To store the password in the Keychain of your remote machine, I recommend running `sigh` or `deliver` using ssh or remote desktop at least once.
|
326
326
|
|
327
|
-
If you're using `Jenkins` as its own user, you might run into problems with `homebrew` and `phantomjs`.
|
328
|
-
|
329
327
|
## Deploy Strategy
|
330
328
|
|
331
329
|
You should **not** deploy a new App Store update after every commit, since you still have to wait 1-2 weeks for the review. Instead I recommend using Git Tags, or custom triggers to deploy a new update.
|
@@ -5,6 +5,28 @@ module Fastlane
|
|
5
5
|
end
|
6
6
|
|
7
7
|
class SlackAction
|
8
|
+
def self.git_branch
|
9
|
+
return nil # not working on Jenkins
|
10
|
+
# s = `git rev-parse --abbrev-ref HEAD`
|
11
|
+
# return s if s.to_s.length > 0
|
12
|
+
# return nil
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.git_author
|
16
|
+
s = `git log --name-status HEAD^..HEAD`
|
17
|
+
s = s.match(/Author:.*<(.*)>/)[1]
|
18
|
+
return s if s.to_s.length > 0
|
19
|
+
return nil
|
20
|
+
rescue
|
21
|
+
return nil
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.build_duration
|
25
|
+
return Time.now - Actions.lane_context[Actions::SharedValues::START_TIME]
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
|
8
30
|
def self.run(params)
|
9
31
|
options = { message: '',
|
10
32
|
success: true,
|
@@ -48,6 +70,22 @@ module Fastlane
|
|
48
70
|
]
|
49
71
|
}
|
50
72
|
|
73
|
+
if git_branch
|
74
|
+
test_result[:fields] << {
|
75
|
+
title: "Git Branch",
|
76
|
+
value: git_branch,
|
77
|
+
short: true
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
if git_author
|
82
|
+
test_result[:fields] << {
|
83
|
+
title: "Git Author",
|
84
|
+
value: git_author,
|
85
|
+
short: true
|
86
|
+
}
|
87
|
+
end
|
88
|
+
|
51
89
|
result = notifier.ping "",
|
52
90
|
icon_url: 'https://s3-eu-west-1.amazonaws.com/fastlane.tools/fastlane.png',
|
53
91
|
attachments: [test_result]
|
data/lib/fastlane/runner.rb
CHANGED
data/lib/fastlane/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|