author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 20 Jan 2020 13:33:54 +0000 | |
changeset 287 | 0283457aef8a |
parent 283 | e6e50f9b9987 |
child 314 | 834d89a1e75d |
permissions | -rw-r--r-- |
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
1 |
# This file defines a set of repositories to fetch source code from. |
59
9099e2455d9c
Added support for multiple different repository sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
# |
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
3 |
|
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
4 |
begin |
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
5 |
# |
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
6 |
# All packages that are not (yet) forked are taken from |
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
7 |
# eXept's public CVS repository |
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
8 |
# |
59
9099e2455d9c
Added support for multiple different repository sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
repository :'exept:public' do |
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
10 |
type :cvs |
270
abb5268826c7
Rakefiles: make 'origin' repository the only mandatory repository
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
268
diff
changeset
|
11 |
origin ":pserver:cvs@cvs.smalltalk-x.de:/cvs/stx" |
59
9099e2455d9c
Added support for multiple different repository sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
end |
9099e2455d9c
Added support for multiple different repository sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
13 |
|
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
14 |
# |
234
05943c900d5e
Rakefiles: added new target `artifacts:source`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
15 |
# Auto-configure jv-branch:public and jv-branch:private |
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
16 |
# repositories based on the URL of rakefiles. |
267
cd10def8fdc4
Rakefiles: use HTTPS to access SWING repositories
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
237
diff
changeset
|
17 |
# |
283
e6e50f9b9987
Rakefiles / CI: various fixes towards new integration / artifact publishing workflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
18 |
origin = HG::Repository.new(BUILD_DIR / '..') |
e6e50f9b9987
Rakefiles / CI: various fixes towards new integration / artifact publishing workflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
19 |
branch = origin.branch() |
e6e50f9b9987
Rakefiles / CI: various fixes towards new integration / artifact publishing workflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
20 |
origin_forest_url = origin.paths['default'].slice(0.. - 'stx-goodies-builder-rake'.size - 2) |
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
21 |
cloned_from_bitbucket = origin_forest_url =~ /bitbucket.org/ |
283
e6e50f9b9987
Rakefiles / CI: various fixes towards new integration / artifact publishing workflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
22 |
cloned_from_integration = ((origin_forest_url =~ /nereid/) || (origin_forest_url =~ /192.168.27.250/)) && branch == 'default' |
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
23 |
|
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
143
diff
changeset
|
24 |
repository :'jv-branch:public' do |
59
9099e2455d9c
Added support for multiple different repository sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
type :hg |
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
26 |
separator '-' |
67
75b6eb7b781c
Added support for canonical, upstream and staging repositores.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
62
diff
changeset
|
27 |
canonical "https://bitbucket.org/janvrany" |
283
e6e50f9b9987
Rakefiles / CI: various fixes towards new integration / artifact publishing workflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
28 |
|
e6e50f9b9987
Rakefiles / CI: various fixes towards new integration / artifact publishing workflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
29 |
if (cloned_from_integration) |
267
cd10def8fdc4
Rakefiles: use HTTPS to access SWING repositories
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
237
diff
changeset
|
30 |
upstream "https://swing.fit.cvut.cz/hg" |
171
2662903f1dfd
Rakefiles: auto-configure repository set
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
31 |
end |
283
e6e50f9b9987
Rakefiles / CI: various fixes towards new integration / artifact publishing workflow
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
273
diff
changeset
|
32 |
|
270
abb5268826c7
Rakefiles: make 'origin' repository the only mandatory repository
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
268
diff
changeset
|
33 |
origin origin_forest_url |
234
05943c900d5e
Rakefiles: added new target `artifacts:source`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
34 |
end |
59
9099e2455d9c
Added support for multiple different repository sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
|
234
05943c900d5e
Rakefiles: added new target `artifacts:source`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
36 |
rescue Exception |
05943c900d5e
Rakefiles: added new target `artifacts:source`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
171
diff
changeset
|
37 |
info "Building from source archive" |
88
112075e99cef
Support for 'upstream' repositories refactored.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
67
diff
changeset
|
38 |
end |