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

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: 6975733d79c5376276b7453269bf966e8d9054af
4
- data.tar.gz: c46889e78114e44b52c8abda84ca278fce3ff869
3
+ metadata.gz: fa9434cdff71c41def4300db90ced271ed925bf7
4
+ data.tar.gz: 8aa7387e37832c73193dc63abcabc095b8b1d027
5
5
  SHA512:
6
- metadata.gz: 3fdb7f4f2fe8663343b1374fc3838b4b7bb7bf023db86f6060ec23cfd494df9d49ab25593b059d96bbe8494bbada480024d1bcb0df1958f80c4c596e077571c3
7
- data.tar.gz: 46f5c8983e2bbabd0c24fa0723a0cbf779b9a1b11ef22a657df88d483927f47ae190aecf7df1751de66f6bac562e9b213813a164f1ccc7f4e9d2df355f5f4963
6
+ metadata.gz: 545e8b03f11ed7275c4f4fba4e08736197f8804ea3f0a27d2d98ee9f33c0839e5ee0e9ff4bcdc9cf2db499f5abe3843c07f7e82c896afea479a7c700b8653dbc
7
+ data.tar.gz: e0e1cf9925029b13148e3917a9d829f57a82dad12062e814191f1075c376a7eb907fef2a863d5ee8fefdf5f515bdc52ef66ca6a5d326ae7482167c9f29a98aea
@@ -14,6 +14,7 @@ module Evrone
14
14
  required :src, :string, 3
15
15
  required :sha, :string, 4
16
16
  optional :deploy_key, :string, 6
17
+ required :travis, :string, 7
17
18
 
18
19
  end
19
20
 
@@ -23,12 +24,10 @@ module Evrone
23
24
 
24
25
  required :id, :uint64, 1
25
26
  required :name, :string, 2
26
- required :src, :string, 3
27
- required :sha, :string, 4
28
- optional :deploy_key, :string, 6
29
27
  required :job_id, :uint64, 7
30
28
  required :before_script, :string, 8
31
29
  required :script, :string, 9
30
+ required :after_script, :string, 11
32
31
  repeated :matrix_keys, :string, 10
33
32
 
34
33
  end
@@ -69,10 +68,6 @@ module Evrone
69
68
  required :status, BuildStatus::Status, 2
70
69
  required :tm, :uint64, 3
71
70
  required :jobs_count, :uint32, 5
72
- optional :commit_author, :string, 7
73
- optional :commit_author_email, :string, 8
74
- optional :commit_sha, :string, 9
75
- optional :commit_message, :string, 10
76
71
 
77
72
  end
78
73
 
@@ -52,11 +52,6 @@ module Evrone
52
52
  status: 0,
53
53
  tm: 1376137604,
54
54
  jobs_count: 1,
55
-
56
- commit_author: "Commit Author",
57
- commit_author_email: "example@example.com",
58
- commit_sha: "d3c7576e3b84bd578ce562c6d504cc7a1233adc1",
59
- commit_message: "Commit Message"
60
55
  }.merge(options)
61
56
  end
62
57
 
@@ -108,17 +103,14 @@ module Evrone
108
103
  class << self
109
104
 
110
105
  def test_attributes(options = {})
111
- key = File.read File.expand_path("../../../../../fixtures/insecure_private_key", __FILE__)
112
106
  options.merge({
113
- id: options[:id] || 1,
114
- name: options[:name] || 'evrone/test-repo',
115
- src: options[:src] || "git@github.com:evrone/ci-worker-test-repo.git",
116
- sha: options[:sha] || "b665f90239563c030f1b280a434b3d84daeda1bd",
117
- deploy_key: options[:deploy_key] || key,
118
- job_id: options[:job_id] || 2,
107
+ id: options[:id] || 1,
108
+ name: options[:name] || 'evrone/test-repo',
109
+ job_id: options[:job_id] || 2,
119
110
  before_script: options[:before_script] || 'echo before_script',
120
- script: options[:script] || 'echo script',
121
- matrix_keys: options[:matrix_keys] || %w{ rvm:2.0.0 }
111
+ script: options[:script] || 'echo script',
112
+ after_script: options[:after_script] || 'echo after_script',
113
+ matrix_keys: options[:matrix_keys] || %w{ rvm:2.0.0 }
122
114
  })
123
115
  end
124
116
 
@@ -134,12 +126,14 @@ module Evrone
134
126
 
135
127
  def test_attributes(options = {})
136
128
  key = File.read File.expand_path("../../../../../fixtures/insecure_private_key", __FILE__)
129
+ travis = File.read File.expand_path("../../../../../fixtures/travis.yml", __FILE__)
137
130
  options.merge({
138
131
  id: options[:id] || 1,
139
132
  name: options[:name] || 'evrone/test-repo',
140
133
  src: options[:src] || "git@github.com:evrone/ci-worker-test-repo.git",
141
134
  sha: options[:sha] || "b665f90239563c030f1b280a434b3d84daeda1bd",
142
- deploy_key: options[:deploy_key] || key
135
+ deploy_key: options[:deploy_key] || key,
136
+ travis: options[:travis] || travis
143
137
  })
144
138
  end
145
139
 
@@ -1,7 +1,7 @@
1
1
  module Evrone
2
2
  module CI
3
3
  module Message
4
- VERSION = "0.2.0.pre4"
4
+ VERSION = "0.2.0.pre5"
5
5
  end
6
6
  end
7
7
  end
data/proto/messages.proto CHANGED
@@ -6,17 +6,16 @@ message PerformBuild {
6
6
  required string src = 3;
7
7
  required string sha = 4;
8
8
  optional string deploy_key = 6;
9
+ required string travis = 7;
9
10
  }
10
11
 
11
12
  message PerformJob {
12
13
  required uint64 id = 1;
13
14
  required string name = 2;
14
- required string src = 3;
15
- required string sha = 4;
16
- optional string deploy_key = 6;
17
15
  required uint64 job_id = 7;
18
16
  required string before_script = 8;
19
17
  required string script = 9;
18
+ required string after_script = 11;
20
19
  repeated string matrix_keys = 10;
21
20
  }
22
21
 
@@ -46,11 +45,6 @@ message BuildStatus {
46
45
  required Status status = 2;
47
46
  required uint64 tm = 3;
48
47
  required uint32 jobs_count = 5;
49
-
50
- optional string commit_author = 7;
51
- optional string commit_author_email = 8;
52
- optional string commit_sha = 9;
53
- optional string commit_message = 10;
54
48
  }
55
49
 
56
50
  message JobStatus {
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.2.0.pre4
4
+ version: 0.2.0.pre5
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-10-05 00:00:00.000000000 Z
11
+ date: 2013-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: beefcake