-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathconfig.rb
More file actions
46 lines (42 loc) · 2 KB
/
config.rb
File metadata and controls
46 lines (42 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# frozen_string_literal: false
require 'travis/config'
module Travis
module Scheduler
class Config < Travis::Config
define amqp: { username: 'guest', password: 'guest', host: 'localhost', prefetch: 1 },
database: { adapter: 'postgresql', database: "travis_#{env}", encoding: 'unicode',
min_messages: 'warning' },
delegate: {},
encryption: { key: SecureRandom.hex(64) },
enterprise: false,
github: { api_url: 'https://api.github.com', source_host: 'github.com' },
billing: { url: 'http://localhost:9292/', auth_key: 'auth_keys' },
billing: { url: 'http://localhost:9292/', auth_key: 'auth_keys' },host: 'https://travis-ci.com',
interval: 2,
limit: { public: 5, education: 1, default: 5, by_owner: {}, delegate: {} },
lock: { strategy: :redis, ttl: 150 },
logger: { time_format: false, process_id: false, thread_id: false },
log_level: :info,
metrics: { reporter: 'librato' },
plans: {},
queue: { default: 'builds.gce', redirect: {} },
queues: [queue: 'name', os: 'os', dist: 'dist', group: 'group', sudo: false, osx_image: 'osx_image', language: 'language', owner: 'owner', slug: 'slug', services: ['service']],
redis: { url: 'redis://localhost:6379' },
sentry: {},
sidekiq: { pool_size: 3, log_level: :warn },
ping: { interval: 5 * 60 },
site: ENV['TRAVIS_SITE'] || 'org',
ssl: {},
job_board: { url: ENV['JOB_BOARD_URL'] || 'https://job-board.travis-ci.org',
auth: ENV['JOB_BOARD_AUTH'] || 'user:pass' },
vcs_proxy_api: { url: 'http://vcs_proxy_api' }
def metrics
# TODO: fix keychain?
super.to_h.merge(librato: librato.to_h.merge(source: librato_source), graphite:)
end
def com?
site == 'com'
end
end
end
end