cider_ci-support 1.3.0 → 2.0.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cider-ci_coverage +10 -10
- data/lib/cider_ci/support/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2e5f106cc834be4f4b8f9e86149e2b35c203992
|
4
|
+
data.tar.gz: cb9ef2acf24bb8d5fad9c04f9b2c81afe0421f2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f507091c231b706a836cce4f8323e480b61d44f4a6177508599c9a8acf3538e8688d8c8d922f434d15b991617bf0575600ca594cf381163d6eb98a8384ecad03
|
7
|
+
data.tar.gz: d49c0d2422a3acb5ded4b123ee4053d597757269b3191fb17faa320191481b2a4b6ecc1c01c589de5f07977aeb971751d73097cedc7de429ab8619f1d8d31ccb
|
data/bin/cider-ci_coverage
CHANGED
@@ -40,8 +40,8 @@ def connect(base_url, username, password)
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
def
|
44
|
-
root.relation('
|
43
|
+
def get_job_resource(root, job_id)
|
44
|
+
root.relation('job').get('id' => job_id)
|
45
45
|
end
|
46
46
|
|
47
47
|
def print_progress_and_debug(separator = '.', msg = '')
|
@@ -56,9 +56,9 @@ end
|
|
56
56
|
def get_and_convert_resultset_attachments(root, tree_id)
|
57
57
|
print 'download_resultset_attachments'; STDOUT.flush
|
58
58
|
|
59
|
-
root.relation('
|
60
|
-
.map(&:get).map do |
|
61
|
-
|
59
|
+
root.relation('jobs').get('treeid' => tree_id).collection \
|
60
|
+
.map(&:get).map do |job|
|
61
|
+
job.relation('tasks').get('state' => 'passed').collection\
|
62
62
|
.map do |task_relation|
|
63
63
|
Thread.future @pool do
|
64
64
|
print_progress_and_debug('', task_relation)
|
@@ -167,9 +167,9 @@ end
|
|
167
167
|
# Git
|
168
168
|
###############################################################################
|
169
169
|
|
170
|
-
def assert_correct_tree_id(
|
171
|
-
if
|
172
|
-
fail ScriptError, 'you must be on the same tree_id as the
|
170
|
+
def assert_correct_tree_id(job)
|
171
|
+
if job.data['tree_id'] != `git log -n 1 --pretty=%T`.strip
|
172
|
+
fail ScriptError, 'you must be on the same tree_id as the job'
|
173
173
|
end
|
174
174
|
end
|
175
175
|
|
@@ -207,9 +207,9 @@ def parse_options(options)
|
|
207
207
|
options.api_url = url
|
208
208
|
end
|
209
209
|
|
210
|
-
opts.on('-e', '--
|
210
|
+
opts.on('-e', '--job JOB_ID',
|
211
211
|
'Execution ID to retrieve coverage for') do |exid|
|
212
|
-
options.
|
212
|
+
options.job_id = exid
|
213
213
|
end
|
214
214
|
|
215
215
|
opts.on('-t', '--thread-pool-size N', Integer) do |t|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cider_ci-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.pre.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Schank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -159,9 +159,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
161
|
requirements:
|
162
|
-
- - "
|
162
|
+
- - ">"
|
163
163
|
- !ruby/object:Gem::Version
|
164
|
-
version:
|
164
|
+
version: 1.3.1
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
167
|
rubygems_version: 2.2.2
|