evrone-ci-message 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/evrone/ci/message.rb +4 -4
- data/lib/evrone/ci/message/testing.rb +9 -10
- data/lib/evrone/ci/message/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d81d29bc5c462f047767d8bb63970aa18aa1a9b
|
4
|
+
data.tar.gz: 52557b06f73bbd5955f1789a111315c00a6a25b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 892a623fd87785a0ab03e0e604c2e0cf834105eed61e98b4dbcbbc2f95cebdcd29bb8da08c40608322f19e8538984130df2e8e2e819b4186458d358d93fbce63
|
7
|
+
data.tar.gz: 06a1c5d3c5dc901786b044d4188841a64cf37a55255ba4338cf8933aed588477268b5d19324808226bf90d554bb8fad6bd665917a426cc7b8e5729bfd37ec53f
|
data/lib/evrone/ci/message.rb
CHANGED
@@ -41,11 +41,11 @@ module Evrone
|
|
41
41
|
optional :string, :deploy_key, 6
|
42
42
|
|
43
43
|
required :uint64, :job_id, 7
|
44
|
-
optional :string, :before_script, 9
|
45
|
-
optional :string, :script, 10
|
46
44
|
|
47
|
-
|
48
|
-
|
45
|
+
required :string, :before_script, 8
|
46
|
+
required :string, :script, 9
|
47
|
+
|
48
|
+
repeated :string, :matrix_keys, 10
|
49
49
|
end
|
50
50
|
|
51
51
|
class BuildLog < ProtocolBuffers::Message
|
@@ -113,18 +113,17 @@ module Evrone
|
|
113
113
|
class << self
|
114
114
|
|
115
115
|
def test_attributes(options = {})
|
116
|
-
|
117
|
-
key = File.read File.expand_path("../../../../../fixtures/insecure_private_key", __FILE__)
|
116
|
+
key = File.read File.expand_path("../../../../../fixtures/insecure_private_key", __FILE__)
|
118
117
|
options.merge({
|
119
|
-
id: options[:id]
|
120
|
-
name: options[:name]
|
121
|
-
src: options[:src]
|
122
|
-
sha: options[:sha]
|
123
|
-
deploy_key: options[:deploy_key]
|
124
|
-
job_id: options[:job_id]
|
125
|
-
travis: options[:travis] || travis,
|
118
|
+
id: options[:id] || 1,
|
119
|
+
name: options[:name] || 'evrone/test-repo',
|
120
|
+
src: options[:src] || "git@github.com:evrone/ci-worker-test-repo.git",
|
121
|
+
sha: options[:sha] || "b665f90239563c030f1b280a434b3d84daeda1bd",
|
122
|
+
deploy_key: options[:deploy_key] || key,
|
123
|
+
job_id: options[:job_id] || 2,
|
126
124
|
before_script: options[:before_script] || 'echo before_script',
|
127
|
-
script: options[:script]
|
125
|
+
script: options[:script] || 'echo script',
|
126
|
+
matrix_keys: options[:matrix_keys] || %w{ rvm:2.0.0 }
|
128
127
|
})
|
129
128
|
end
|
130
129
|
|