Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 89 lines (68 sloc) 1.993 kb
3e3309c @franckverrot Furnished a bit more the DSL
authored
1 scm :git # Extend for Hg, Subversion, etc..
275ac56 @franckverrot First commit
authored
2
3e3309c @franckverrot Furnished a bit more the DSL
authored
3 tracker :pivotal_tracker, :project_id => 123456
4 # we should use: https://github.com/hybridgroup/ticketmaster
275ac56 @franckverrot First commit
authored
5
3e3309c @franckverrot Furnished a bit more the DSL
authored
6 running_branches do
7 development
8 production
9 end
10
11 repository do
12 url 'git@github.com:Foo/bar.git'
13 auth '??'
14 commit_template '' # Write a default to get this started right.
15 hooks :pre => '', :post => '', :clone => '' # Something here for CI, immediately. Always set authors.
16 end
17
18 continuous_integration :hudson # :bigtuna ?
19
20 topics do
21
22 feature :source => :development_branch do |feature_name|
23 tag feature_name
24 merge :into => :development
25 end
26
27 # rebase implies merge?
28 hotfix :source => :production_branch do |hotfix_name|
29 tag hotfix_name
30 rebase :production_branch
31 merge :into => :development, :rebase => false, :ff => false
32 merge :into => :current_release_branch, :rebase => true, :ff => false
33 end
275ac56 @franckverrot First commit
authored
34
3e3309c @franckverrot Furnished a bit more the DSL
authored
35 # Work on release branch preparation must be merged back to development, as well as going forward to the production branch itself.
36 release :source => :development_branch do |release|
37 tag release
38 rebase :production_branch
39 rebase :development_branch
275ac56 @franckverrot First commit
authored
40 end
41
3e3309c @franckverrot Furnished a bit more the DSL
authored
42 bug :source => :development_branch do |bug_name|
43 tag bug_name
44 merge :development_branch
275ac56 @franckverrot First commit
authored
45 end
46
3e3309c @franckverrot Furnished a bit more the DSL
authored
47 chore :source => :development_branch do |chore_name|
48 tag chore_name
49 merge :development_branch
50 end
51 end
275ac56 @franckverrot First commit
authored
52
53
3e3309c @franckverrot Furnished a bit more the DSL
authored
54 # Actions which apply to each topic?
55 actions do
275ac56 @franckverrot First commit
authored
56
3e3309c @franckverrot Furnished a bit more the DSL
authored
57 start :ticket do |ticket|
58 end
275ac56 @franckverrot First commit
authored
59
3e3309c @franckverrot Furnished a bit more the DSL
authored
60 # but demonstration only applies to features probably ..?
61 demonstrate :ticket do |topic|
62 end
275ac56 @franckverrot First commit
authored
63
3e3309c @franckverrot Furnished a bit more the DSL
authored
64 finish :ticket do |topic|
65 # this should do 'test' and 'demonstrate'
66 end
275ac56 @franckverrot First commit
authored
67
3e3309c @franckverrot Furnished a bit more the DSL
authored
68 test :ticket do
69 # local tests only?
70 # spork or test server?
71 #
72 end
275ac56 @franckverrot First commit
authored
73
3e3309c @franckverrot Furnished a bit more the DSL
authored
74 deliver :ticket do
275ac56 @franckverrot First commit
authored
75 end
76
3e3309c @franckverrot Furnished a bit more the DSL
authored
77 update do |branch|
78 # Loop over all branches and git pull --rebase them.
79 # Helpful during mid-development to keep everything close against origin.
275ac56 @franckverrot First commit
authored
80 end
81
82 end
83
3e3309c @franckverrot Furnished a bit more the DSL
authored
84 roles do
85 developer
86 release_master
87 designer
88 end
Something went wrong with that request. Please try again.