cider_ci-support 1.0.0.pre.beta.1 → 1.0.0.pre.beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/cider-ci_coverage +22 -18
- data/cider_ci-support.gemspec +1 -1
- 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: 4a34b6f0b4b99b7a5e12f2e6b48a71ebfdb8bd58
|
4
|
+
data.tar.gz: 2afc2fa2fc2edd6a45c4f05da5654bf313641921
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc29eca73106ae5335c2496cb32b2620c1f0778197545478466cd79f71a37125b9cf2f1f180183d4c167b59d18cb538bf70a88e44c8b2abfcba73975fe8e6621
|
7
|
+
data.tar.gz: b4935d76a6db7f7b69c5ed8fd6017ec61fa8aaab041a20a34ba3b739240a7feac4d3044d816ee82954883156e8c36e00168f63229387dad9984d757b2d569e93
|
data/bin/cider-ci_coverage
CHANGED
@@ -44,13 +44,12 @@ end
|
|
44
44
|
def get_and_convert_resultset_attachments execution, thread_pool_size
|
45
45
|
print "download_resultset_attachments"; STDOUT.flush
|
46
46
|
pool = Thread.pool thread_pool_size
|
47
|
-
|
48
|
-
execution.relation('tasks').get("state" => "success").collection\
|
47
|
+
execution.relation('tasks').get("state" => "passed").collection\
|
49
48
|
.map do |task_relation|
|
50
49
|
Thread.future pool do
|
51
50
|
print "."; STDOUT.flush
|
52
51
|
task_relation.get().relation('trials') \
|
53
|
-
.get("state" => "
|
52
|
+
.get("state" => "passed").collection.map(&:get).map do |trial|
|
54
53
|
print "."; STDOUT.flush
|
55
54
|
trial.relation('trial-attachments') \
|
56
55
|
.get.collection.map do |tar|
|
@@ -71,6 +70,26 @@ def get_and_convert_resultset_attachments execution, thread_pool_size
|
|
71
70
|
end
|
72
71
|
|
73
72
|
|
73
|
+
###############################################################################
|
74
|
+
# Upload
|
75
|
+
###############################################################################
|
76
|
+
|
77
|
+
def upload_as_tree_attachments execution
|
78
|
+
print "upload_as_tree_attachments"; STDOUT.flush
|
79
|
+
upload_relation= execution.relation("tree-attachments").get() \
|
80
|
+
.relation("data-stream")
|
81
|
+
Dir.glob("coverage/**/*").each do |filename|
|
82
|
+
if content_type= MIME::Types.of(filename).first.content_type rescue nil
|
83
|
+
payload= Faraday::UploadIO.new(filename, content_type)
|
84
|
+
upload_relation.put({"path" => filename},
|
85
|
+
File.open(filename, "rb").read,
|
86
|
+
{"content-type" => content_type})
|
87
|
+
print "*"; STDOUT.flush
|
88
|
+
end
|
89
|
+
end
|
90
|
+
puts ""
|
91
|
+
end
|
92
|
+
|
74
93
|
|
75
94
|
###############################################################################
|
76
95
|
# Simplev cov
|
@@ -173,21 +192,6 @@ def assert_correct_tree_id execution
|
|
173
192
|
end
|
174
193
|
end
|
175
194
|
|
176
|
-
def upload_as_tree_attachments execution
|
177
|
-
print "upload_as_tree_attachments"; STDOUT.flush
|
178
|
-
upload_relation= execution.relation("tree-attachments").get().relation("data-stream")
|
179
|
-
Dir.glob("coverage/**/*").each do |filename|
|
180
|
-
if content_type= MIME::Types.of(filename).first.content_type rescue nil
|
181
|
-
payload= Faraday::UploadIO.new(filename, content_type)
|
182
|
-
upload_relation.put({"path" => filename},
|
183
|
-
File.open(filename, "rb").read,
|
184
|
-
{"content-type" => content_type})
|
185
|
-
print "*"; STDOUT.flush
|
186
|
-
end
|
187
|
-
end
|
188
|
-
puts ""
|
189
|
-
end
|
190
|
-
|
191
195
|
def main
|
192
196
|
options = OpenStruct.new
|
193
197
|
options.thread_pool_size= 50
|
data/cider_ci-support.gemspec
CHANGED
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_runtime_dependency 'mime-types'
|
25
25
|
spec.add_runtime_dependency 'thread', '= 0.1.4'
|
26
26
|
spec.add_runtime_dependency 'simplecov', '~> 0.9'
|
27
|
-
spec.add_runtime_dependency 'json_roa-client', "= 1.0.0.pre.beta.
|
27
|
+
spec.add_runtime_dependency 'json_roa-client', "= 1.0.0.pre.beta.1"
|
28
28
|
end
|
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: 1.0.0.pre.beta.
|
4
|
+
version: 1.0.0.pre.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Schank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.0.0.pre.beta.
|
89
|
+
version: 1.0.0.pre.beta.1
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.0.0.pre.beta.
|
96
|
+
version: 1.0.0.pre.beta.1
|
97
97
|
description: ''
|
98
98
|
email:
|
99
99
|
- DrTom@schank.ch
|