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')
|
).property('data.config')
|
||||||
|
|
||||||
sponsor: (->
|
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')
|
).property('log.workerName')
|
||||||
|
|
||||||
configValues: (->
|
configValues: (->
|
||||||
|
|
|
@ -43,8 +43,8 @@
|
||||||
|
|
||||||
@Travis.WORKERS = {
|
@Travis.WORKERS = {
|
||||||
"jvm-otp1.worker.travis-ci.org":
|
"jvm-otp1.worker.travis-ci.org":
|
||||||
name: "Travis Pro"
|
name: "Travis CI"
|
||||||
url: "http://beta.travis-ci.com"
|
url: "http://travis-ci.com"
|
||||||
"jvm-otp2.worker.travis-ci.org":
|
"jvm-otp2.worker.travis-ci.org":
|
||||||
name: "Transloadit"
|
name: "Transloadit"
|
||||||
url: "http://transloadit.com"
|
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