Display Travis CI as box sponsor if there is not worker with given name
This commit is contained in:
parent
94f1e64554
commit
b309819f24
|
@ -30,7 +30,12 @@ require 'travis/model'
|
|||
).property('data.config')
|
||||
|
||||
sponsor: (->
|
||||
Travis.WORKERS[@get('log.workerName')]
|
||||
worker = @get('log.workerName')
|
||||
if worker && worker.length
|
||||
Travis.WORKERS[worker] || {
|
||||
name: "Travis CI"
|
||||
url: "http://travis-ci.com"
|
||||
}
|
||||
).property('log.workerName')
|
||||
|
||||
configValues: (->
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
|
||||
@Travis.WORKERS = {
|
||||
"jvm-otp1.worker.travis-ci.org":
|
||||
name: "Travis Pro"
|
||||
url: "http://beta.travis-ci.com"
|
||||
name: "Travis CI"
|
||||
url: "http://travis-ci.com"
|
||||
"jvm-otp2.worker.travis-ci.org":
|
||||
name: "Transloadit"
|
||||
url: "http://transloadit.com"
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
0e91a7bd
|
||||
1092ebaa
|
Loading…
Reference in New Issue
Block a user