Use CONFIG_KEYS in formatConfig

This commit is contained in:
Piotr Sarnacki 2013-06-06 19:06:32 +02:00
parent 299e227342
commit ca835f5a1c
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ require 'config/emoij'
(sha || '').substr(0, 7)
formatConfig: (config) ->
config = $.only config, 'rvm', 'go', 'gemfile', 'env', 'otp_release', 'php', 'node_js', 'scala', 'jdk', 'python', 'perl', 'compiler'
config = $.only config, Travis.CONFIG_KEYS
values = $.map config, (value, key) ->
value = (if value && value.join then value.join(', ') else value) || ''
if key == 'rvm' && "#{value}".match(/^\d+$/)

View File

@ -45,7 +45,7 @@ $.extend Travis,
pusher_key: $('meta[name="travis.pusher_key"]').attr('value')
ga_code: $('meta[name="travis.ga_code"]').attr('value')
CONFIG_KEYS: ['rvm', 'gemfile', 'env', 'jdk', 'otp_release', 'php', 'node_js', 'perl', 'python', 'scala', 'compiler']
CONFIG_KEYS: ['go', 'rvm', 'gemfile', 'env', 'jdk', 'otp_release', 'php', 'node_js', 'perl', 'python', 'scala', 'compiler']
QUEUES: [
{ name: 'linux', display: 'Linux' }