coveralls 0.7.8 → 0.7.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6f9d20e518967295c5e90aa30f24853a977adb6
4
- data.tar.gz: 76dd6a6f554f26465f896dc9978e8b99182309dc
3
+ metadata.gz: 7c9081eace87a75c07c487a73474062818cefddb
4
+ data.tar.gz: 2736e03861ec57363ffc0668ab3f41f34b925dbf
5
5
  SHA512:
6
- metadata.gz: 7622f62246f73624be4d58119d290359b4ef744463763ddae701e0248f3b00c6bf5a8faa281227259df9a23ab0f540fa1638fcd1510fa1741c21c5e25a2f33e2
7
- data.tar.gz: 5f2f0cc9c65ca934da6c66548e5e702560171cb0dfc361954c91286cfd3231fcc05f6f052f447719ce64f29f98db1e501a4c264c17412dbc123a0d0c37e32d11
6
+ metadata.gz: b4b68224deb21f71157fa506f63f89bf69d81499cd98f732086221f868e1195f1723be2423d0ed322c3bab8246427c1172186ee272a95dde78950d7af4af8ef3
7
+ data.tar.gz: 312fa648d99738309294437573a786de8a90ef75f5c07e968ee7f888daf51c55b0577da40d56e7709586f52de9e294fb3e85f6c6f725449262c1e4c230a54658
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - rbx-2.2.6
3
4
  - jruby-19mode
4
5
  - 1.9.2
5
6
  - 1.9.3
@@ -1,3 +1,7 @@
1
+ # Changelog
2
+
3
+ ### Please see Github Releases section for current releases.
4
+
1
5
  ## 0.7.0 (September 18, 2013)
2
6
 
3
7
  [Full Changelog](https://github.com/lemurheavy/coveralls-ruby/compare/v0.6.4...v0.7.0)
@@ -65,7 +65,7 @@ module Coveralls
65
65
  config = Coveralls::Configuration.configuration
66
66
  if ENV['CI'] || ENV['COVERALLS_DEBUG'] || Coveralls.testing
67
67
  Coveralls::Output.puts "[Coveralls] Submitting with config:", :color => "yellow"
68
- output = MultiJson.dump(config, :pretty => true).gsub(/"repo_token": "(.*?)"/,'"repo_token": "[secure]"')
68
+ output = MultiJson.dump(config, :pretty => true).gsub(/"repo_token": ?"(.*?)"/,'"repo_token": "[secure]"')
69
69
  Coveralls::Output.puts output, :color => "yellow"
70
70
  end
71
71
  hash.merge(config)
@@ -2,6 +2,7 @@ module Coveralls
2
2
  module Configuration
3
3
 
4
4
  require 'yaml'
5
+ require 'securerandom'
5
6
 
6
7
  def self.configuration
7
8
  config = {
@@ -27,6 +28,8 @@ module Coveralls
27
28
  set_service_params_for_semaphore(config)
28
29
  elsif ENV['JENKINS_URL']
29
30
  set_service_params_for_jenkins(config)
31
+ elsif ENV['APPVEYOR']
32
+ set_service_params_for_appveyor(config)
30
33
  elsif ENV['TDDIUM']
31
34
  set_service_params_for_tddium(config)
32
35
  elsif ENV['COVERALLS_RUN_LOCALLY'] || Coveralls.testing
@@ -62,6 +65,15 @@ module Coveralls
62
65
  config[:service_number] = ENV['BUILD_NUMBER']
63
66
  end
64
67
 
68
+ def self.set_service_params_for_appveyor(config)
69
+ config[:service_name] = 'appveyor'
70
+ config[:service_number] = ENV['APPVEYOR_BUILD_VERSION']
71
+ config[:service_branch] = ENV['APPVEYOR_REPO_BRANCH']
72
+ config[:commit_sha] = ENV['APPVEYOR_REPO_COMMIT']
73
+ repo_name = ENV['APPVEYOR_REPO_NAME']
74
+ config[:service_build_url] = 'https://ci.appveyor.com/project/%s/build/%s' % [repo_name, config[:service_number]]
75
+ end
76
+
65
77
  def self.set_service_params_for_tddium(config)
66
78
  config[:service_name] = 'tddium'
67
79
  config[:service_number] = ENV['TDDIUM_SESSION_ID']
@@ -182,6 +194,11 @@ module Coveralls
182
194
  :branch => ENV['GIT_BRANCH'],
183
195
  :commit_sha => ENV['GIT_COMMIT']
184
196
  }
197
+ elsif ENV['SEMAPHORE']
198
+ {
199
+ :branch => ENV['BRANCH_NAME'],
200
+ :commit_sha => ENV['REVISION']
201
+ }
185
202
  else
186
203
  {}
187
204
  end
@@ -1,3 +1,3 @@
1
1
  module Coveralls
2
- VERSION = "0.7.8"
2
+ VERSION = "0.7.9"
3
3
  end
@@ -256,4 +256,30 @@ describe Coveralls::Configuration do
256
256
  config[:service_pull_request].should eq(service_pull_request)
257
257
  end
258
258
  end
259
+
260
+ describe '.set_service_params_for_appveyor' do
261
+ let(:service_number) { SecureRandom.hex(4) }
262
+ let(:service_branch) { SecureRandom.hex(4) }
263
+ let(:commit_sha) { SecureRandom.hex(4) }
264
+ let(:repo_name) { SecureRandom.hex(4) }
265
+
266
+ before do
267
+ ENV.stub(:[]).with('APPVEYOR_BUILD_VERSION').and_return(service_number)
268
+ ENV.stub(:[]).with('APPVEYOR_REPO_BRANCH').and_return(service_branch)
269
+ ENV.stub(:[]).with('APPVEYOR_REPO_COMMIT').and_return(commit_sha)
270
+ ENV.stub(:[]).with('APPVEYOR_REPO_NAME').and_return(repo_name)
271
+ end
272
+
273
+ it 'should set the expected parameters' do
274
+ config = {}
275
+ Coveralls::Configuration.set_service_params_for_appveyor(config)
276
+ config[:service_name].should eq('appveyor')
277
+ config[:service_number].should eq(service_number)
278
+ config[:service_branch].should eq(service_branch)
279
+ config[:commit_sha].should eq(commit_sha)
280
+ config[:service_build_url].should eq('https://ci.appveyor.com/project/%s/build/%s' % [repo_name, service_number])
281
+ end
282
+ end
283
+
284
+
259
285
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveralls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-30 00:00:00.000000000 Z
12
+ date: 2015-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client