evrone-ci-message 0.0.1 → 0.0.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: 8775722eb4227ba63c0c2f29a17dada6e4754bdb
4
- data.tar.gz: dc6e880d1838811e53669f8cd32f0b9d48d7ca9a
3
+ metadata.gz: 9ca193244684a9f0e77f5aaa1217a367919ede98
4
+ data.tar.gz: 092abbf848f4f08e32cb72aebecdff05e085f386
5
5
  SHA512:
6
- metadata.gz: ba9b50dca0214aeba4a7455f1034eb4884f3e8a45e4ece61bc6d2c5b96fe12cdc31abe3e5c44c7549226d26bb7c864b5edd785f7a7fce214f02657ae9d9a54c7
7
- data.tar.gz: d4c4f21e139d2be4dcf54fa539638ea28b993adfcaa9ef872452bcc75b40b49d4522489b0980ca87f417b1bab77d6921039b85a46cadcf75f9a7e302e22c9ce2
6
+ metadata.gz: 851071c5eb92edb2a0d4567846f08f04e692324a924c3a281fcbe5b5586b4f14bfb81b0ead89b2623c548033015c95a5ad85bd31d5f3d7c1150e5540df0b41d8
7
+ data.tar.gz: bb110e3a3466e2d79793970ada2dffb4091ed95ff97edaac545ff4bea4783230c9ba1d0762f6ac897402869e33b7971c96490625d028956cb61e85e285784537
@@ -41,7 +41,11 @@ module Evrone
41
41
  optional :string, :deploy_key, 6
42
42
 
43
43
  required :uint64, :job_id, 7
44
- required :string, :travis, 8
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
- PerformBuild.test_attributes({job_id: 2, travis: travis}.merge(options))
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
- travis = File.read File.expand_path("../../../../../fixtures/travis.yml", __FILE__)
122
- PerformBuild.test_pull_request_attributes({job_id: 2, travis: travis}.merge(options))
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 = {})
@@ -1,7 +1,7 @@
1
1
  module Evrone
2
2
  module CI
3
3
  module Message
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@ require 'stringio'
3
3
 
4
4
  describe Evrone::CI::Message do
5
5
 
6
- %w{ PerformBuild PerformJob BuildLog JobLog BuildStatus JobStatus BuildInfo }.each do |klass|
6
+ %w{ PerformBuild PerformJob BuildLog JobLog BuildStatus JobStatus }.each do |klass|
7
7
 
8
8
  context "#{klass}" do
9
9
 
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.1
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-24 00:00:00.000000000 Z
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