This repository has been archived by the owner on Oct 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcruise_config.rb
34 lines (26 loc) · 1.49 KB
/
cruise_config.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
# Project-specific configuration for CruiseControl.rb
Project.configure do |project|
# Send email notifications about broken and fixed builds to [email protected], [email protected] (default: send to nobody)
# project.email_notifier.emails = ['[email protected]', '[email protected]']
# Set email 'from' field to [email protected]:
# project.email_notifier.from = '[email protected]'
# Build the project by invoking rake task 'custom'
# project.rake_task = 'custom'
# Build the project by invoking shell script "build_my_app.sh". Keep in mind that when the script is invoked,
# current working directory is <em>[cruise data]</em>/projects/your_project/work, so if you do not keep build_my_app.sh
# in version control, it should be '../build_my_app.sh' instead
python = case project.name
when /-py2(\d)$/
"python2.#{$1}"
else
"python"
end
project.build_command = "#{python} setup.py build test"
# Ping Subversion for new revisions every 5 minutes (default: 30 seconds)
# project.scheduler.polling_interval = 5.minutes
# Force the project always build once every day and always build whether there are source control changes or not
# project.scheduler.polling_interval = 1.day
# project.scheduler.always_build = true
# Force the project to check for source control changes every given time interval, but NOT build if there are no changes
# project.triggered_by ScheduledBuildTrigger.new(project, :build_interval => 5.minutes, :start_time => 2.minutes.from_now)
end