Make pusher log fallback configurable and disable it by default

This commit is contained in:
Piotr Sarnacki 2014-11-12 12:26:45 +01:00
parent 840ce5a47d
commit 95538498f0
4 changed files with 9 additions and 2 deletions

View File

@ -31,7 +31,11 @@ require 'travis/log_chunks'
if parts = @get('parts')
parts.destroy()
parts = Travis.LogChunks.create(content: [], missingPartsCallback: => @fetchMissingParts.apply(this, arguments))
if Travis.config.pusher_log_fallback
parts = Travis.LogChunks.create(content: [], missingPartsCallback: => @fetchMissingParts.apply(this, arguments))
else
parts = Ember.ArrayProxy.create(content: [])
@set 'parts', parts
# @set 'parts', Travis.ChunkBuffer.create(content: [])

View File

@ -88,6 +88,7 @@ $.extend Travis,
caches_enabled: $('meta[name="travis.caches_enabled"]').attr('value') == 'true'
show_repos_hint: 'private'
avatar_default_url: 'https://travis-ci.org/images/mailer/mascot-avatar-40px.png'
pusher_log_fallback: $('meta[name="travis.pusher_log_fallback"]').attr('value') == 'true'
CONFIG_KEYS_MAP: {
go: 'Go'

View File

@ -35,5 +35,6 @@ run Travis::Web::App.build(
root: File.expand_path('../public', __FILE__),
server_start: Time.now,
caches_enabled: ENV['CACHES_ENABLED'],
ssh_key_enabled: ENV['SSH_KEY_ENABLED']
ssh_key_enabled: ENV['SSH_KEY_ENABLED'],
pusher_log_fallback: ENV['PUSHER_LOG_FALLBACK']
)

View File

@ -10,6 +10,7 @@
<meta name="travis.pusher_host" value="ws.pusherapp.com">
<meta name="travis.ga_code" value="UA-24868285-1">
<meta name="travis.caches_enabled" value="false">
<meta name="travis.pusher_log_fallback" value="false">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Travis CI - Free Hosted Continuous Integration Platform for the Open Source Community</title>
<link rel="dns-prefetch" href="//api.travis-ci.org">