Display Travis CI as box sponsor if there is not worker with given name

This commit is contained in:
Piotr Sarnacki 2012-10-08 17:09:37 +02:00
parent 94f1e64554
commit b309819f24
5 changed files with 11 additions and 6 deletions

View File

@ -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: (->

View File

@ -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

View File

@ -1 +1 @@
0e91a7bd
1092ebaa