forked from integrity/integrity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
49 lines (45 loc) · 1.45 KB
/
init.rb
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
47
48
49
$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
begin
require ".bundle/environment"
rescue LoadError
require "bundler/setup"
end
require "integrity"
# Uncomment as appropriate for the notifier you want to use
# = Email
# require "integrity/notifier/email"
# = SES Email
# require "integrity/notifier/ses"
# = Campfire
# require "integrity/notifier/campfire"
# = TCP
# require "integrity/notifier/tcp"
# = HTTP
# require "integrity/notifier/http"
# = Notifo
# require "integrity/notifier/notifo"
# = AMQP
# require "integrity/notifier/amqp"
# = Shell
# require "integrity/notifier/shell"
# = Co-op
# require "integrity/notifier/coop"
Integrity.configure do |c|
c.database = "sqlite3:integrity.db"
# PostgreSQL via the local socket to "integrity" database:
# c.database = "postgres:///integrity"
# PostgreSQL via a more full specification:
# c.database = "postgres://user:pass@host:port/database"
# Heroku
# c.database = ENV['DATABASE_URL']
c.directory = "builds"
# Heroku
# c.directory = File.dirname(__FILE__) + '/tmp/builds'
c.base_url = "http://ci.example.org"
c.log = "integrity.log"
c.github_token = "SECRET"
c.build_all = true
c.trim_branches = false
c.builder = :threaded, 5
c.project_default_build_count = 10
end