Use CONFIG_KEYS in formatConfig
This commit is contained in:
parent
299e227342
commit
ca835f5a1c
|
@ -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+$/)
|
||||
|
|
|
@ -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' }
|
||||
|
|
Loading…
Reference in New Issue
Block a user