coveralls-lcov 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/coveralls-lcov.gemspec +1 -1
- data/lib/coveralls/lcov.rb +0 -1
- data/lib/coveralls/lcov/converter.rb +1 -1
- data/lib/coveralls/lcov/runner.rb +16 -3
- data/lib/coveralls/lcov/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5947e0da86ee418e01885e3ffa90560160da8f408921a4fea674808d0479f448
|
4
|
+
data.tar.gz: 5d87045b77103b3061b889ed3a4ca485e252866cb154defe331613158c071e44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59e6f65330738325d79eacd9496a7637a4264a223c009ccaf8d64f628c2974159187005d0f83ffaeec196b06721ba70faa01cc0fc2ac6899e5a41b8c40a66213
|
7
|
+
data.tar.gz: d56f7e7f880e8cd9211b50d981efb3afc3e2d48701cf8af9d416ce12c7f9c083bdd9e9f424e6afe43e0ae08f7378ed7b7c57a816bd491ce78208f9cf8a2b6762
|
data/coveralls-lcov.gemspec
CHANGED
data/lib/coveralls/lcov.rb
CHANGED
@@ -7,7 +7,6 @@ require "coveralls/lcov/converter"
|
|
7
7
|
|
8
8
|
module Coveralls
|
9
9
|
# URI: https://coveralls.io/api/v1/jobs
|
10
|
-
HOST = "coveralls.io"
|
11
10
|
PATH = "/api/v1/jobs"
|
12
11
|
|
13
12
|
module Lcov
|
@@ -22,6 +21,10 @@ module Coveralls
|
|
22
21
|
@service_job_id = nil
|
23
22
|
@verbose = false
|
24
23
|
@dry_run = false
|
24
|
+
@host = "coveralls.io"
|
25
|
+
@port = 443
|
26
|
+
@use_ssl = true
|
27
|
+
@parallel = ENV["COVERALLS_PARALLEL"] == "true"
|
25
28
|
@parser = OptionParser.new(@argv)
|
26
29
|
@parser.banner = <<BANNER
|
27
30
|
Usage: coveralls-lcov [options] coverage.info
|
@@ -54,6 +57,15 @@ BANNER
|
|
54
57
|
@parser.on("-n", "--dry-run", "Dry run") do
|
55
58
|
@dry_run = true
|
56
59
|
end
|
60
|
+
@parser.on("-h", "--host=HOST", "Host of Coveralls endpoint (default: coveralls.io)") do |host|
|
61
|
+
@host = host
|
62
|
+
end
|
63
|
+
@parser.on("-p", "--port=PORT", "Port of Coveralls endpoint (default: 443)") do |port|
|
64
|
+
@port = port
|
65
|
+
end
|
66
|
+
@parser.on("--[no-]ssl", "Use SSL for connecting (default)") do |use_ssl|
|
67
|
+
@use_ssl = use_ssl
|
68
|
+
end
|
57
69
|
end
|
58
70
|
|
59
71
|
def run
|
@@ -72,6 +84,7 @@ BANNER
|
|
72
84
|
elsif coveralls_config && coveralls_config["repo_token"]
|
73
85
|
payload[:repo_token] = coveralls_config["repo_token"]
|
74
86
|
end
|
87
|
+
payload[:parallel] = @parallel
|
75
88
|
payload_json = payload.to_json
|
76
89
|
puts payload_json if @verbose
|
77
90
|
unless @dry_run
|
@@ -88,8 +101,8 @@ BANNER
|
|
88
101
|
Net::HTTP.version_1_2
|
89
102
|
response = nil
|
90
103
|
|
91
|
-
http = Net::HTTP.new(
|
92
|
-
http.use_ssl =
|
104
|
+
http = Net::HTTP.new(@host, @port)
|
105
|
+
http.use_ssl = @use_ssl
|
93
106
|
http.start do
|
94
107
|
request = Net::HTTP::Post.new(PATH)
|
95
108
|
request["content-type"] = "multipart/form-data; boundary=boundary"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls-lcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenji Okimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
rubygems_version: 2.6.13
|
79
|
+
rubygems_version: 3.1.2
|
81
80
|
signing_key:
|
82
81
|
specification_version: 4
|
83
82
|
summary: Post coverage information to coveralls.io
|