fastlane 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7e3c1f918b6ff0497e9e8ca5ac2b56913dc45a9
4
- data.tar.gz: bb9af362963253a8c426361ba060153f4c866567
3
+ metadata.gz: dda26c230bd671d631a72ef0634fdd899bbfbc0b
4
+ data.tar.gz: ffcfef90c6e7211d1418742f7dc43e6450eadaaa
5
5
  SHA512:
6
- metadata.gz: 517c23f6e525798af6bd44c2bac02925a55bbd6d2f08a7cba6560d85562e9223fbfc0fffd50fa043db34b8e297b665d1a4cdea9b09224019a82832c1c062b04f
7
- data.tar.gz: f4d2e3c8e35beb9c7914b86df6dd850a6592ac2aedb8df208fa82fcae1ded963f57e9594c3e02b777b862550c060456075fbaa1d4f5efc79646e039f9e00ceb1
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.
@@ -4,6 +4,7 @@ module Fastlane
4
4
  module Actions
5
5
  module SharedValues
6
6
  LANE_NAME = :LANE_NAME
7
+ START_TIME = :START_TIME
7
8
  end
8
9
 
9
10
  def self.executed_actions
@@ -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]
@@ -5,6 +5,7 @@ module Fastlane
5
5
  key = key.to_sym
6
6
  Helper.log.info "Driving the lane '#{key}'".green
7
7
  Actions.lane_context[Actions::SharedValues::LANE_NAME] = key
8
+ Actions.lane_context[Actions::SharedValues::START_TIME] = Time.now
8
9
 
9
10
  return_val = nil
10
11
 
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.6
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-01 00:00:00.000000000 Z
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json