coveralls-multi 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coveralls-multi/config.rb +19 -23
- data/lib/coveralls-multi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1049071b72ffb1cf119002e2e9231303b9a631976881779f77ed0d4ea23c00a1
|
4
|
+
data.tar.gz: 8352d9312bdf3a9c372ac81d2e4a4fc73d0dc10e82a3f50fe498aae99aa7089f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c3a8111b484ee9702ec14e420c9dbbe0c986c117af395b89c2cefbe461b37cac7f161142d62b174c130d2d4e35c1922071759a1a228357a62cf25e3017f13ef
|
7
|
+
data.tar.gz: c505f058b242e15b7a6cc07c67770c2a1393cd05517435ac3e0e6da1952ed4c3beaa8973692ee1919dc2c403dd1f4baa4e1a9ff774cfeb7c799f53a5029bb8af
|
@@ -31,7 +31,7 @@ module CoverallsMulti
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def api_domain
|
34
|
-
ENV['COVERALLS_ENDPOINT'] || 'https://coveralls.io'
|
34
|
+
ENV['COVERALLS_ENDPOINT'] || yaml_config['endpoint'] || 'https://coveralls.io'
|
35
35
|
end
|
36
36
|
|
37
37
|
def api_endpoint
|
@@ -95,10 +95,11 @@ module CoverallsMulti
|
|
95
95
|
end
|
96
96
|
|
97
97
|
def add_service_params_for_travis(config, service_name)
|
98
|
-
config[:service_job_id]
|
98
|
+
config[:service_job_id] = ENV['TRAVIS_JOB_ID']
|
99
99
|
config[:service_pull_request] = ENV['TRAVIS_PULL_REQUEST'] unless ENV['TRAVIS_PULL_REQUEST'] == 'false'
|
100
|
-
config[:service_name]
|
101
|
-
config[:service_branch]
|
100
|
+
config[:service_name] = service_name || 'travis-ci'
|
101
|
+
config[:service_branch] = ENV['TRAVIS_BRANCH']
|
102
|
+
config[:branch] = ENV['TRAVIS_BRANCH']
|
102
103
|
config
|
103
104
|
end
|
104
105
|
|
@@ -108,6 +109,7 @@ module CoverallsMulti
|
|
108
109
|
config[:service_pull_request] = (ENV['CI_PULL_REQUEST'] || '')[/(\d+)$/, 1]
|
109
110
|
config[:parallel] = ENV['CIRCLE_NODE_TOTAL'].to_i > 1
|
110
111
|
config[:service_job_number] = ENV['CIRCLE_NODE_INDEX']
|
112
|
+
config[:branch] = ENV['CIRCLE_BRANCH']
|
111
113
|
config
|
112
114
|
end
|
113
115
|
|
@@ -115,34 +117,27 @@ module CoverallsMulti
|
|
115
117
|
config[:service_name] = 'semaphore'
|
116
118
|
config[:service_number] = ENV['SEMAPHORE_BUILD_NUMBER']
|
117
119
|
config[:service_pull_request] = ENV['PULL_REQUEST_NUMBER']
|
120
|
+
config[:branch] = ENV['BRANCH_NAME']
|
118
121
|
config
|
119
122
|
end
|
120
123
|
|
121
124
|
def add_service_params_for_jenkins(config)
|
122
|
-
config[:service_name]
|
123
|
-
config[:service_number]
|
124
|
-
config[:service_branch]
|
125
|
+
config[:service_name] = 'jenkins'
|
126
|
+
config[:service_number] = ENV['BUILD_NUMBER']
|
127
|
+
config[:service_branch] = ENV['BRANCH_NAME']
|
125
128
|
config[:service_pull_request] = ENV['ghprbPullId']
|
129
|
+
config[:branch] = ENV['GIT_BRANCH'] || ENV['BRANCH_NAME']
|
126
130
|
config
|
127
131
|
end
|
128
132
|
|
129
133
|
def add_service_params_for_appveyor(config)
|
130
|
-
config[:service_name]
|
131
|
-
config[:service_number]
|
132
|
-
config[:service_branch]
|
133
|
-
config[:
|
134
|
-
|
135
|
-
|
136
|
-
config
|
137
|
-
end
|
138
|
-
|
139
|
-
def add_service_params_for_tddium(config)
|
140
|
-
config[:service_name] = 'tddium'
|
141
|
-
config[:service_number] = ENV['TDDIUM_SESSION_ID']
|
142
|
-
config[:service_job_number] = ENV['TDDIUM_TID']
|
143
|
-
config[:service_pull_request] = ENV['TDDIUM_PR_ID']
|
144
|
-
config[:service_branch] = ENV['TDDIUM_CURRENT_BRANCH']
|
145
|
-
config[:service_build_url] = "https://ci.solanolabs.com/reports/#{ENV['TDDIUM_SESSION_ID']}"
|
134
|
+
config[:service_name] = 'appveyor'
|
135
|
+
config[:service_number] = ENV['APPVEYOR_BUILD_VERSION']
|
136
|
+
config[:service_branch] = ENV['APPVEYOR_REPO_BRANCH']
|
137
|
+
config[:branch] = ENV['APPVEYOR_REPO_BRANCH']
|
138
|
+
config[:commit_sha] = ENV['APPVEYOR_REPO_COMMIT']
|
139
|
+
repo_name = ENV['APPVEYOR_REPO_NAME']
|
140
|
+
config[:service_build_url] = format('https://ci.appveyor.com/project/%s/build/%s', repo_name, config[:service_number])
|
146
141
|
config
|
147
142
|
end
|
148
143
|
|
@@ -151,6 +146,7 @@ module CoverallsMulti
|
|
151
146
|
config[:service_job_number] = ENV['CI_BUILD_NAME']
|
152
147
|
config[:service_job_id] = ENV['CI_BUILD_ID']
|
153
148
|
config[:service_branch] = ENV['CI_BUILD_REF_NAME']
|
149
|
+
config[:branch] = ENV['CI_BUILD_REF_NAME']
|
154
150
|
config[:commit_sha] = ENV['CI_BUILD_REF']
|
155
151
|
config
|
156
152
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls-multi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CJ Horton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls-lcov
|