coveralls-lcov 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coveralls/lcov/converter.rb +7 -2
- data/lib/coveralls/lcov/runner.rb +3 -0
- data/lib/coveralls/lcov/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57344e96bb1d56cf2faf3892ed21cf7abaf87409
|
4
|
+
data.tar.gz: 9641dc761eedf6908685555970c6a831a62fc0bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ef168a1e6990e2612af8feae9dbdabc223e790988e38dd7601f2f3f8e0085f1f19253c9ef45f468170d410e4f903fa3b75daf04fe17b181f2d99b6179b18a63
|
7
|
+
data.tar.gz: c5c4beafbe4acbc1c7b61d6d933cf598dd7f027a2c10a2319658a7b9a5df6f20e00b1ec82d40e763b0138d9a3f133bd55a188a22946d6dd88612e5f97ee146b0
|
@@ -2,10 +2,11 @@
|
|
2
2
|
module Coveralls
|
3
3
|
module Lcov
|
4
4
|
class Converter
|
5
|
-
def initialize(tracefile, source_encoding = Encoding::UTF_8, service_name = "travis-ci")
|
5
|
+
def initialize(tracefile, source_encoding = Encoding::UTF_8, service_name = "travis-ci", service_job_id = nil)
|
6
6
|
@tracefile = tracefile
|
7
7
|
@source_encoding = source_encoding
|
8
8
|
@service_name = service_name
|
9
|
+
@service_job_id = service_job_id
|
9
10
|
end
|
10
11
|
|
11
12
|
def convert
|
@@ -16,7 +17,7 @@ module Coveralls
|
|
16
17
|
end
|
17
18
|
payload = {
|
18
19
|
service_name: @service_name,
|
19
|
-
service_job_id:
|
20
|
+
service_job_id: service_job_id,
|
20
21
|
git: git_info,
|
21
22
|
source_files: source_files,
|
22
23
|
}
|
@@ -74,6 +75,10 @@ module Coveralls
|
|
74
75
|
branch: `git rev-parse --abbrev-ref HEAD`,
|
75
76
|
}
|
76
77
|
end
|
78
|
+
|
79
|
+
def service_job_id
|
80
|
+
ENV["TRAVIS_JOB_ID"] || @service_job_id
|
81
|
+
end
|
77
82
|
end
|
78
83
|
end
|
79
84
|
end
|
@@ -33,6 +33,9 @@ BANNER
|
|
33
33
|
@parser.on("-s", "--service-name=SERVICENAME", "Service name") do |service_name|
|
34
34
|
@service_name = service_name
|
35
35
|
end
|
36
|
+
@parser.on("--service-job-id=JOB_ID", "Service job id. ex. TRAVIS_JOB_ID") do |service_job_id|
|
37
|
+
@service_job_id = service_job_id
|
38
|
+
end
|
36
39
|
@parser.on("--retry=N", Integer, "Retry to POST N times (default: 3)") do |n_times|
|
37
40
|
@n_times = n_times
|
38
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls-lcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.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: 2017-
|
11
|
+
date: 2017-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.6.
|
80
|
+
rubygems_version: 2.6.11
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Post coverage information to coveralls.io
|