evrone-ci-message 0.2.0.pre3 → 0.2.0.pre4

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: bcc6322664b5da0778492e03fad9159137408e0c
4
- data.tar.gz: e2fa336d0054cad4ebeac46be8f99811e94e186d
3
+ metadata.gz: 6975733d79c5376276b7453269bf966e8d9054af
4
+ data.tar.gz: c46889e78114e44b52c8abda84ca278fce3ff869
5
5
  SHA512:
6
- metadata.gz: e5124cea2570dcc0e92a3af86146a58487d4338763b8d156d763db01799ece4b4cceb172c725cf3641ca470905b09decf464e3cb99cd7d38870252286fe2ea02
7
- data.tar.gz: 2e25443782aad85ff03670e76968e9e490da92731d96937ee585515679a5e78b1d4d385f3fb2af726a81b1eb10217a26601c5ca007030f1daf63ff40a293dff2
6
+ metadata.gz: 3fdb7f4f2fe8663343b1374fc3838b4b7bb7bf023db86f6060ec23cfd494df9d49ab25593b059d96bbe8494bbada480024d1bcb0df1958f80c4c596e077571c3
7
+ data.tar.gz: 46f5c8983e2bbabd0c24fa0723a0cbf779b9a1b11ef22a657df88d483927f47ae190aecf7df1751de66f6bac562e9b213813a164f1ccc7f4e9d2df355f5f4963
@@ -13,7 +13,6 @@ module Evrone
13
13
  required :name, :string, 2
14
14
  required :src, :string, 3
15
15
  required :sha, :string, 4
16
- optional :pull_request_id, :uint64, 5
17
16
  optional :deploy_key, :string, 6
18
17
 
19
18
  end
@@ -26,7 +25,6 @@ module Evrone
26
25
  required :name, :string, 2
27
26
  required :src, :string, 3
28
27
  required :sha, :string, 4
29
- optional :pull_request_id, :uint64, 5
30
28
  optional :deploy_key, :string, 6
31
29
  required :job_id, :uint64, 7
32
30
  required :before_script, :string, 8
@@ -70,7 +68,6 @@ module Evrone
70
68
  required :build_id, :uint64, 1
71
69
  required :status, BuildStatus::Status, 2
72
70
  required :tm, :uint64, 3
73
- required :tm_usec, :uint32, 4
74
71
  required :jobs_count, :uint32, 5
75
72
  optional :commit_author, :string, 7
76
73
  optional :commit_author_email, :string, 8
@@ -94,7 +91,6 @@ module Evrone
94
91
  required :job_id, :uint64, 2
95
92
  required :status, JobStatus::Status, 3
96
93
  required :tm, :uint64, 4
97
- required :tm_usec, :uint32, 5
98
94
  repeated :matrix, :string, 6
99
95
 
100
96
  end
@@ -32,7 +32,6 @@ module Evrone
32
32
  job_id: 2,
33
33
  status: 0,
34
34
  tm: 1376137604,
35
- tm_usec: 1234,
36
35
  matrix: ["env:FOO = 1", "rvm:1.9.3"]
37
36
  }.merge(options)
38
37
  end
@@ -52,7 +51,6 @@ module Evrone
52
51
  build_id: 1,
53
52
  status: 0,
54
53
  tm: 1376137604,
55
- tm_usec: 1234,
56
54
  jobs_count: 1,
57
55
 
58
56
  commit_author: "Commit Author",
@@ -124,22 +122,10 @@ module Evrone
124
122
  })
125
123
  end
126
124
 
127
- def test_pull_request_attributes(options = {})
128
- options = {
129
- sha: "84158c732ff1af3db9775a37a74ddc39f5c4078f",
130
- pull_request_id: 4
131
- }.merge(options)
132
- test_attributes(options)
133
- end
134
-
135
125
  def test_message(options = {})
136
126
  new test_attributes(options)
137
127
  end
138
128
 
139
- def test_pull_request_message(options = {})
140
- new test_pull_request_attributes(options)
141
- end
142
-
143
129
  end
144
130
  end
145
131
 
@@ -1,7 +1,7 @@
1
1
  module Evrone
2
2
  module CI
3
3
  module Message
4
- VERSION = "0.2.0.pre3"
4
+ VERSION = "0.2.0.pre4"
5
5
  end
6
6
  end
7
7
  end
data/proto/messages.proto CHANGED
@@ -5,7 +5,6 @@ message PerformBuild {
5
5
  required string name = 2;
6
6
  required string src = 3;
7
7
  required string sha = 4;
8
- optional uint64 pull_request_id = 5;
9
8
  optional string deploy_key = 6;
10
9
  }
11
10
 
@@ -14,7 +13,6 @@ message PerformJob {
14
13
  required string name = 2;
15
14
  required string src = 3;
16
15
  required string sha = 4;
17
- optional uint64 pull_request_id = 5;
18
16
  optional string deploy_key = 6;
19
17
  required uint64 job_id = 7;
20
18
  required string before_script = 8;
@@ -47,7 +45,6 @@ message BuildStatus {
47
45
  required uint64 build_id = 1;
48
46
  required Status status = 2;
49
47
  required uint64 tm = 3;
50
- required uint32 tm_usec = 4;
51
48
  required uint32 jobs_count = 5;
52
49
 
53
50
  optional string commit_author = 7;
@@ -68,7 +65,6 @@ message JobStatus {
68
65
  required uint64 job_id = 2;
69
66
  required Status status = 3;
70
67
  required uint64 tm = 4;
71
- required uint32 tm_usec = 5;
72
68
  repeated string matrix = 6;
73
69
  }
74
70
 
@@ -21,20 +21,6 @@ describe Evrone::CI::Message do
21
21
  expect(obj).to eq subject
22
22
  end
23
23
 
24
- if %w{ PerformBuild PerformJob }.include?(klass)
25
- context "with pull reqest" do
26
- subject { inst.test_pull_request_message }
27
-
28
- it "should be valid" do
29
- expect(subject.validate!).to be_true
30
- end
31
-
32
- it "should have pull_request_id" do
33
- expect(subject.pull_request_id).to be
34
- end
35
- end
36
- end
37
-
38
24
  if klass == 'JobStatus'
39
25
  it "should have matrix" do
40
26
  expect(subject.matrix).to eq ["env:FOO = 1", "rvm:1.9.3"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evrone-ci-message
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre3
4
+ version: 0.2.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky