Skip to content

Commit abe63b5

Browse files
committed
Stop billing requsts on org domain
1 parent 5fba5a4 commit abe63b5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/travis/api/enqueue/services/restart_model.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def accept?
3131
end
3232

3333
def billing?
34+
# there is no billing for .org
35+
return true if ENV["TRAVIS_SITE"] == 'org'
36+
3437
@_billing_ok ||= begin
3538
jobs = target.is_a?(Job) ? [target] : target.matrix
3639

spec/lib/travis/api/enqueue/services/restart_model_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
before do
1111
Travis.config.billing.url = 'http://localhost:9292/'
1212
Travis.config.billing.auth_key = 'secret'
13+
ENV['TRAVIS_SITE'] = 'com'
1314
end
1415

1516
after do

0 commit comments

Comments
 (0)