Add config for enterprise
This commit is contained in:
parent
131025f999
commit
9b0d98234e
|
@ -8,12 +8,14 @@
|
|||
<li class="home">
|
||||
{{#link-to "main"}}Home{{/link-to}}
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://blog.travis-ci.com">Blog</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://traviscistatus.com">Status</a>
|
||||
</li>
|
||||
{{#unless config.enterprise}}
|
||||
<li>
|
||||
<a href="http://blog.travis-ci.com">Blog</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://traviscistatus.com">Status</a>
|
||||
</li>
|
||||
{{/unless}}
|
||||
{{#unless config.pro}}
|
||||
<li class="menu community">
|
||||
<p class="handle">
|
||||
|
|
|
@ -94,7 +94,10 @@ $.extend Travis,
|
|||
show_repos_hint: 'private'
|
||||
avatar_default_url: 'https://travis-ci.org/images/ui/default-avatar.png'
|
||||
pusher_log_fallback: $('meta[name="travis.pusher_log_fallback"]').attr('value') == 'true'
|
||||
pro: $('meta[name="travis.pro"]').attr('value') == 'true'
|
||||
# for now I set pro to true also for enterprise, but it should be changed
|
||||
# to allow more granular config later
|
||||
pro: $('meta[name="travis.pro"]').attr('value') == 'true' || $('meta[name="travis.enterprise"]').attr('value') == 'true'
|
||||
enterprise: $('meta[name="travis.enterprise"]').attr('value') == 'true'
|
||||
|
||||
pages_endpoint: pages_endpoint || billing_endpoint
|
||||
billing_endpoint: billing_endpoint
|
||||
|
|
|
@ -44,6 +44,11 @@ if ENV['TRAVIS_PRO']
|
|||
ENV['CODE_CLIMATE'] = 'true' unless ENV.has_key?('CODE_CLIMATE')
|
||||
end
|
||||
|
||||
if ENV['TRAVIS_ENTERPRISE']
|
||||
ENV['SSH_KEY_ENABLED'] = 'true' unless ENV.has_key?('SSH_KEY_ENABLED')
|
||||
ENV['CACHES_ENABLED'] = 'true' unless ENV.has_key?('CACHES_ENABLED')
|
||||
end
|
||||
|
||||
run Travis::Web::App.build(
|
||||
environment: ENV['RACK_ENV'] || 'development',
|
||||
api_endpoint: ENV['API_ENDPOINT'],
|
||||
|
@ -62,6 +67,7 @@ run Travis::Web::App.build(
|
|||
charm_key: ENV['CHARM_KEY'],
|
||||
customer_io_site_id: ENV['CUSTOMER_IO_SITE_ID'],
|
||||
pro: ENV['TRAVIS_PRO'],
|
||||
enterprise: ENV['TRAVIS_ENTERPRISE'],
|
||||
code_climate: ENV['CODE_CLIMATE'],
|
||||
code_climate_url: ENV['CODE_CLIMATE_URL'],
|
||||
assets_host: ENV['ASSETS_HOST']
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<meta name="travis.pusher_log_fallback" value="false">
|
||||
<meta name="travis.charm_key" value="gy5gx7dy6dh86hxzkz1wmtvupwvievu">
|
||||
<meta name="travis.pro" value="false">
|
||||
<meta name="travis.enterprise" value="false">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{title}}</title>
|
||||
<link rel="dns-prefetch" href="//api.travis-ci.org">
|
||||
|
|
Loading…
Reference in New Issue
Block a user