Show sponsor info under the log
This commit is contained in:
parent
521fc3112d
commit
94f1e64554
|
@ -43,7 +43,7 @@ GIT
|
|||
|
||||
GIT
|
||||
remote: git://github.com/travis-ci/travis-api.git
|
||||
revision: fa4c5db39b94234e9a3a87da0b4ccca466e034e2
|
||||
revision: 1624742cfd4bb1704ef916684e8962bf25219de3
|
||||
specs:
|
||||
travis-api (0.0.1)
|
||||
backports (~> 2.5)
|
||||
|
@ -159,7 +159,7 @@ GEM
|
|||
activesupport
|
||||
faraday (0.8.4)
|
||||
multipart-post (~> 1.1)
|
||||
foreman (0.60.0)
|
||||
foreman (0.60.2)
|
||||
thor (>= 0.13.6)
|
||||
fssm (0.2.9)
|
||||
guard (1.4.0)
|
||||
|
|
|
@ -6,6 +6,9 @@ require 'travis/model'
|
|||
@_super.apply this, arguments
|
||||
@set 'queue', Ember.A([])
|
||||
|
||||
@addObserver 'body', @fetchWorker
|
||||
@fetchWorker()
|
||||
|
||||
append: (body) ->
|
||||
if @get('isLoaded')
|
||||
@set('body', @get('body') + body)
|
||||
|
@ -18,3 +21,12 @@ require 'travis/model'
|
|||
if queue.get('length') > 0
|
||||
@append queue.toArray().join('')
|
||||
).observes('isLoaded')
|
||||
|
||||
fetchWorker: ->
|
||||
if body = @get('body')
|
||||
line = body.split("\n")[0]
|
||||
if line && (match = line.match /Using worker: (.*)/)
|
||||
if worker = match[1]
|
||||
worker = worker.trim().split(':')[0]
|
||||
@set('workerName', worker)
|
||||
@removeObserver 'body', @fetchWorker
|
||||
|
|
|
@ -30,8 +30,8 @@ require 'travis/model'
|
|||
).property('data.config')
|
||||
|
||||
sponsor: (->
|
||||
@get('data.sponsor')
|
||||
).property('data.sponsor')
|
||||
Travis.WORKERS[@get('log.workerName')]
|
||||
).property('log.workerName')
|
||||
|
||||
configValues: (->
|
||||
if config = @get('config')
|
||||
|
|
|
@ -41,4 +41,41 @@
|
|||
{ type: 'silver', link: "<a href=\"http://tupalo.com\">Tupalo</a><span>: Discover, review & share local businesses.</span>" }
|
||||
]
|
||||
|
||||
|
||||
@Travis.WORKERS = {
|
||||
"jvm-otp1.worker.travis-ci.org":
|
||||
name: "Travis Pro"
|
||||
url: "http://beta.travis-ci.com"
|
||||
"jvm-otp2.worker.travis-ci.org":
|
||||
name: "Transloadit"
|
||||
url: "http://transloadit.com"
|
||||
"ppp1.worker.travis-ci.org":
|
||||
name: "Travis Pro"
|
||||
url: "http://beta.travis-ci.com"
|
||||
"ppp2.worker.travis-ci.org":
|
||||
name: "EnterpriseRails"
|
||||
url: "http://www.enterprise-rails.com"
|
||||
"ppp3.worker.travis-ci.org":
|
||||
name: "Alchemy CMS"
|
||||
url: "http://alchemy-cms.com/"
|
||||
"rails1.worker.travis-ci.org":
|
||||
name: "EnterpriseRails"
|
||||
url: "http://www.enterprise-rails.com"
|
||||
"ruby1.worker.travis-ci.org":
|
||||
name: "Engine Yard"
|
||||
url: "http://www.engineyard.com"
|
||||
"ruby2.worker.travis-ci.org":
|
||||
name: "EnterpriseRails"
|
||||
url: "http://www.enterprise-rails.com"
|
||||
"ruby3.worker.travis-ci.org":
|
||||
name: "Railslove"
|
||||
url: "http://railslove.de"
|
||||
"ruby4.worker.travis-ci.org":
|
||||
name: "Engine Yard"
|
||||
url: "http://www.engineyard.com"
|
||||
"spree.worker.travis-ci.org":
|
||||
name: "Spree"
|
||||
url: "http://spreecommerce.com"
|
||||
"staging.worker.travis-ci.org":
|
||||
name: "EnterpriseRails"
|
||||
url: "http://www.enterprise-rails.com"
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -1 +1 @@
|
|||
dd0dc238
|
||||
0e91a7bd
|
Loading…
Reference in New Issue
Block a user