coveralls-lcov 1.1.3 → 1.2.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 +3 -2
- data/lib/coveralls/lcov/runner.rb +5 -1
- 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: 0ddb611041dfcf4cbe4eb70138d4817c4b37d2b5
|
4
|
+
data.tar.gz: 156febabb8bfb10e2c72cf9e3d05fd2e7f5db4f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 840adfb95fff15a69f88387bba87dff3410fc72c819cdb439d0047bea073227aca033092dfc013e59034af06a43ea25c10e5fc9798bca1a4497a312600368669
|
7
|
+
data.tar.gz: a9190302204c811a870931ab2d4000c2875461133d0aa86cb135701d13085a832170417a0eb1449b249264b9574de83485d3443595fb4efc0ac8e44e5db6270e
|
@@ -2,9 +2,10 @@
|
|
2
2
|
module Coveralls
|
3
3
|
module Lcov
|
4
4
|
class Converter
|
5
|
-
def initialize(tracefile, source_encoding = Encoding::UTF_8)
|
5
|
+
def initialize(tracefile, source_encoding = Encoding::UTF_8, service_name = "travis-ci")
|
6
6
|
@tracefile = tracefile
|
7
7
|
@source_encoding = source_encoding
|
8
|
+
@service_name = service_name
|
8
9
|
end
|
9
10
|
|
10
11
|
def convert
|
@@ -14,7 +15,7 @@ module Coveralls
|
|
14
15
|
source_files << generate_source_file(filename, info)
|
15
16
|
end
|
16
17
|
payload = {
|
17
|
-
service_name:
|
18
|
+
service_name: @service_name,
|
18
19
|
service_job_id: ENV["TRAVIS_JOB_ID"],
|
19
20
|
git: git_info,
|
20
21
|
source_files: source_files,
|
@@ -17,6 +17,7 @@ module Coveralls
|
|
17
17
|
@n_times = 3
|
18
18
|
@delay = 3
|
19
19
|
@source_encoding = Encoding::UTF_8
|
20
|
+
@service_name = "travis-ci"
|
20
21
|
@verbose = false
|
21
22
|
@dry_run = false
|
22
23
|
@parser = OptionParser.new(@argv)
|
@@ -29,6 +30,9 @@ BANNER
|
|
29
30
|
@parser.on("-t", "--repo-token=TOKEN", "Repository token") do |token|
|
30
31
|
@repo_token = token
|
31
32
|
end
|
33
|
+
@parser.on("-s", "--service-name=SERVICENAME", "Service name") do |service_name|
|
34
|
+
@service_name = service_name
|
35
|
+
end
|
32
36
|
@parser.on("--retry=N", Integer, "Retry to POST N times (default: 3)") do |n_times|
|
33
37
|
@n_times = n_times
|
34
38
|
end
|
@@ -55,7 +59,7 @@ BANNER
|
|
55
59
|
exit false
|
56
60
|
end
|
57
61
|
tracefile = @argv.shift
|
58
|
-
converter = Converter.new(tracefile, @source_encoding)
|
62
|
+
converter = Converter.new(tracefile, @source_encoding, @service_name)
|
59
63
|
payload = converter.convert
|
60
64
|
payload[:repo_token] = @repo_token if @repo_token
|
61
65
|
payload_json = payload.to_json
|
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.2.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: 2017-02-20 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.
|
80
|
+
rubygems_version: 2.6.8
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Post coverage information to coveralls.io
|