[pro-merge] Properly set defaults for travis-pro

This commit is contained in:
Piotr Sarnacki 2014-12-29 15:47:01 +01:00
parent 8e2f8fc7f3
commit 0fc0d0eb03
2 changed files with 19 additions and 1 deletions

View File

@ -33,6 +33,21 @@ use Travis::Web::ApiRedirect do |app|
app.settings.api_endpoint = ENV['API_ENDPOINT'] if ENV['API_ENDPOINT']
end
if ENV['TRAVIS_PRO']
ENV['API_ENDPOINT'] ||= "https://api.travis-ci.com"
ENV['PAGES_ENDPOINT'] ||= "https://billing.travis-ci.com"
ENV['BILLING_ENDPOINT'] ||= "https://billing.travis-ci.com"
ENV['SSH_KEY_ENABLED'] = 'true' unless ENV.has_key?('SSH_KEY_ENABLED')
ENV['CACHES_ENABLED'] = 'true' unless ENV.has_key?('CACHES_ENABLED')
ENV['PUSHER_KEY'] ||= "59236bc0716a551eab40"
ENV['GA_CODE'] ||= "UA-24868285-5"
ENV['CODE_CLIMATE_URL'] ||= "https://codeclimate.com/partners/travisci"
ENV['CODE_CLIMATE'] = 'true' unless ENV.has_key?('CODE_CLIMATE')
end
run Travis::Web::App.build(
environment: ENV['RACK_ENV'] || 'development',
api_endpoint: ENV['API_ENDPOINT'],
@ -50,5 +65,7 @@ run Travis::Web::App.build(
pusher_log_fallback: ENV['PUSHER_LOG_FALLBACK'],
charm_key: ENV['CHARM_KEY'],
customer_io_site_id: ENV['CUSTOMER_IO_SITE_ID'],
pro: ENV['TRAVIS_PRO']
pro: ENV['TRAVIS_PRO'],
code_climate: ENV['CODE_CLIMATE'],
code_climate_url: ENV['CODE_CLIMATE_URL']
)

View File

@ -8,6 +8,7 @@
<meta name="travis.ssh_key_enabled" value="false">
<meta name="travis.pusher_key" value="5df8ac576dcccf4fd076">
<meta name="travis.pusher_host" value="ws.pusherapp.com">
<meta name="travis.pusher_path" value="">
<meta name="travis.ga_code" value="UA-24868285-1">
<meta name="travis.caches_enabled" value="false">
<meta name="travis.pusher_log_fallback" value="false">