File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ def self.configuration
41
41
# standardized env vars
42
42
set_standard_service_params_for_generic_ci ( config )
43
43
44
+ if service_name = ENV [ 'COVERALLS_SERVICE_NAME' ]
45
+ config [ :service_name ] = service_name
46
+ end
47
+
44
48
config
45
49
end
46
50
Original file line number Diff line number Diff line change 1
1
module Coveralls
2
- VERSION = "0.8.18 "
2
+ VERSION = "0.8.19 "
3
3
end
Original file line number Diff line number Diff line change 55
55
end
56
56
57
57
context 'Services' do
58
+ context 'with env based service name' do
59
+ let ( :service_name ) { 'travis-enterprise' }
60
+ before do
61
+ ENV . stub ( :[] ) . with ( 'TRAVIS' ) . and_return ( '1' )
62
+ ENV . stub ( :[] ) . with ( 'COVERALLS_SERVICE_NAME' ) . and_return ( service_name )
63
+ end
64
+
65
+ it 'pulls the service name from the environment if set' do
66
+ config = Coveralls ::Configuration . configuration
67
+ config [ :service_name ] . should eq ( service_name )
68
+ end
69
+ end
70
+
58
71
context 'on Travis' do
59
72
before do
60
73
ENV . stub ( :[] ) . with ( 'TRAVIS' ) . and_return ( '1' )
You can’t perform that action at this time.
0 commit comments