evrone-ci-message 0.0.1 → 0.0.2
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 +4 -4
- data/lib/evrone/ci/message.rb +5 -1
- data/lib/evrone/ci/message/testing.rb +15 -3
- data/lib/evrone/ci/message/version.rb +1 -1
- data/spec/lib/message_spec.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: 9ca193244684a9f0e77f5aaa1217a367919ede98
|
|
4
|
+
data.tar.gz: 092abbf848f4f08e32cb72aebecdff05e085f386
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 851071c5eb92edb2a0d4567846f08f04e692324a924c3a281fcbe5b5586b4f14bfb81b0ead89b2623c548033015c95a5ad85bd31d5f3d7c1150e5540df0b41d8
|
|
7
|
+
data.tar.gz: bb110e3a3466e2d79793970ada2dffb4091ed95ff97edaac545ff4bea4783230c9ba1d0762f6ac897402869e33b7971c96490625d028956cb61e85e285784537
|
data/lib/evrone/ci/message.rb
CHANGED
|
@@ -41,7 +41,11 @@ module Evrone
|
|
|
41
41
|
optional :string, :deploy_key, 6
|
|
42
42
|
|
|
43
43
|
required :uint64, :job_id, 7
|
|
44
|
-
|
|
44
|
+
repeated :string, :before_script, 9
|
|
45
|
+
repeated :string, :script, 10
|
|
46
|
+
|
|
47
|
+
# deprecated
|
|
48
|
+
optional :string, :travis, 8
|
|
45
49
|
end
|
|
46
50
|
|
|
47
51
|
class BuildLog < ProtocolBuffers::Message
|
|
@@ -114,12 +114,24 @@ module Evrone
|
|
|
114
114
|
|
|
115
115
|
def test_attributes(options = {})
|
|
116
116
|
travis = File.read File.expand_path("../../../../../fixtures/travis.yml", __FILE__)
|
|
117
|
-
|
|
117
|
+
key = File.read File.expand_path("../../../../../fixtures/insecure_private_key", __FILE__)
|
|
118
|
+
options.merge({
|
|
119
|
+
id: options[:id] || 1,
|
|
120
|
+
name: options[:name] || 'evrone/test-repo',
|
|
121
|
+
src: options[:src] || "git@github.com:evrone/ci-worker-test-repo.git",
|
|
122
|
+
sha: options[:sha] || "b665f90239563c030f1b280a434b3d84daeda1bd",
|
|
123
|
+
deploy_key: options[:deploy_key] || key,
|
|
124
|
+
job_id: options[:job_id] || 2,
|
|
125
|
+
travis: options[:travis] || travis,
|
|
126
|
+
})
|
|
118
127
|
end
|
|
119
128
|
|
|
120
129
|
def test_pull_request_attributes(options = {})
|
|
121
|
-
|
|
122
|
-
|
|
130
|
+
options = {
|
|
131
|
+
sha: "84158c732ff1af3db9775a37a74ddc39f5c4078f",
|
|
132
|
+
pull_request_id: 4
|
|
133
|
+
}.merge(options)
|
|
134
|
+
test_attributes(options)
|
|
123
135
|
end
|
|
124
136
|
|
|
125
137
|
def test_message(options = {})
|
data/spec/lib/message_spec.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: evrone-ci-message
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Galinsky
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-08-
|
|
11
|
+
date: 2013-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ruby-protocol-buffers
|