coveralls 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coveralls/configuration.rb +3 -2
- data/lib/coveralls/version.rb +1 -1
- data/spec/coveralls/configuration_spec.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5715807f4800461bfbf95d4f2bf32fa99d612d35
|
4
|
+
data.tar.gz: 461ffb9b16d72c2b15e5cebaad6f5e8031524f73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6df3d614eed9c671018987ebf7abbded1624bda09e33889c21a47d7384b3e5098f8899b2084bfd741b93db5ff450e31431dafa234c1da76e97b78efc27ced69b
|
7
|
+
data.tar.gz: f9f5dd3390c25764155bac1bf6a7812fcccd109c2c4fe5991780b40f6be2d84284bc66b1adef500ef5d8efa4f5bf71ce3d8534632d916f7039c1baea06de9658
|
@@ -58,8 +58,9 @@ module Coveralls
|
|
58
58
|
|
59
59
|
def self.set_service_params_for_semaphore(config)
|
60
60
|
config[:service_name] = 'semaphore'
|
61
|
-
# Semaphore build numbers are non-unique across branches, so branch id is needed for scoping
|
62
|
-
|
61
|
+
# Semaphore build numbers are non-unique across branches, so branch id is needed for scoping;
|
62
|
+
# they recommended concating with a 0
|
63
|
+
config[:service_number] = "#{ENV['SEMAPHORE_BRANCH_ID']}0#{ENV['SEMAPHORE_BUILD_NUMBER']}"
|
63
64
|
config[:service_pull_request] = ENV['PULL_REQUEST_NUMBER']
|
64
65
|
end
|
65
66
|
|
data/lib/coveralls/version.rb
CHANGED
@@ -195,15 +195,17 @@ describe Coveralls::Configuration do
|
|
195
195
|
|
196
196
|
describe '.set_service_params_for_semaphore' do
|
197
197
|
let(:semaphore_build_num) { SecureRandom.hex(4) }
|
198
|
+
let(:semaphore_branch_id) { SecureRandom.hex(4) }
|
198
199
|
before do
|
199
200
|
ENV.stub(:[]).with('SEMAPHORE_BUILD_NUMBER').and_return(semaphore_build_num)
|
201
|
+
ENV.stub(:[]).with('SEMAPHORE_BRANCH_ID').and_return(semaphore_branch_id)
|
200
202
|
end
|
201
203
|
|
202
204
|
it 'should set the expected parameters' do
|
203
205
|
config = {}
|
204
206
|
Coveralls::Configuration.set_service_params_for_semaphore(config)
|
205
207
|
config[:service_name].should eq('semaphore')
|
206
|
-
config[:service_number].should eq(semaphore_build_num)
|
208
|
+
config[:service_number].should eq("#{semaphore_branch_id}0#{semaphore_build_num}")
|
207
209
|
end
|
208
210
|
end
|
209
211
|
|