author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 02 Nov 2017 14:24:09 +0000 | |
branch | stx-8.0.0 |
changeset 198 | 9d1750614ee9 |
parent 197 | b0874b09676a |
child 200 | bf8b3d4e7865 |
permissions | -rwxr-xr-x |
11
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
1 |
# A helper function to download and unpack pre-built stc and librun |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
2 |
# for those who are not lucky enough to have an access to sources |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
3 |
def download_blob_matching(pattern, directory) |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
4 |
plat = nil |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
5 |
blob = nil |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
6 |
sha256 = nil |
189
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
7 |
|
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
8 |
build_url = %Q{https://swing.fit.cvut.cz/jenkins/job/stx_jv/lastStableBuild} |
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
9 |
|
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
10 |
origin_forest_url = HG::Repository.new(BUILD_DIR / '..').paths['default'].slice(0.. - 'stx-goodies-builder-rake'.size - 2) #/ |
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
11 |
# Temporary hack to build Smalltalk/X using stc and librun from Jan's |
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
12 |
# 8.0.0 test builds |
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
13 |
if (origin_forest_url =~ /192.168.27.250/) then |
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
14 |
build_url = %Q{http://192.168.27.253:8080/job/stx_jv_features/job/stx-8.0.0/lastStableBuild/} |
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
15 |
end |
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
16 |
|
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
17 |
build = Jenkins::Build.new(build_url) |
5b2320f1f2e2
Rakefiles: allow to clone and build Smalltalk/X jv-branch 8.0.0 preview
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
18 |
platform = BUILD_TARGET |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
19 |
build.artifacts.each do | artifact | |
110
da2585640b0c
CI: Updated prebuilt STC and stx:librun download code to catch up with new pipleline jobs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
109
diff
changeset
|
20 |
if (pattern =~ artifact.name) and (artifact.name.include? platform) then |
11
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
21 |
if artifact.name.end_with? '.sha256' then |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
22 |
sha256 = artifact |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
23 |
else |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
24 |
blob = artifact |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
25 |
end |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
26 |
end |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
27 |
end |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
28 |
if not blob then |
169
f9f519bb10b6
Use GNU target triplets to specify build targets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
29 |
error "No artifact matching given pattern found: '#{pattern}'" |
11
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
30 |
end |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
31 |
puts "Downloading binary component #{blob.name}" |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
32 |
blob.download_to(directory) |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
33 |
if sha256 then |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
34 |
sha256.download_to(directory) |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
35 |
end |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
36 |
unzip directory / blob.name, remove: true |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
37 |
rm_f directory / sha256.name |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
38 |
end |
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
39 |
|
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
40 |
|
f7dc950d8df8
Automatically download pre-built librun and stc when sources are not available.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
41 |
|
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
42 |
project :'stx:jv-branch-core' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
43 |
# Core Smalltalk/X - does contain only standard libraries, |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
# and development tools. Does not contain any other 'features' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
45 |
# like XML suite, Java support. Usable as a basis for standalone |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
46 |
# applications that needs some JV-branch features. |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
47 |
import :'stx:baseline' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
48 |
|
102
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
49 |
# FORKED STC and librun |
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
50 |
package "stx:stc", :repository => :'jv-branch:private', :branch => 'jv', revision: 'stx-8.0.0', |
108 | 51 |
:checkout => (Proc.new do | pkg | |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
52 |
# Download pre-compiled binary if user has no access to source code |
102
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
53 |
if Rake::Stx::Configuration::Repository::find(pkg.repository) then |
108 | 54 |
checkout pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision |
102
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
55 |
else |
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
56 |
download_blob_matching(/prebuilt-stc/, BUILD_DIR / 'stx') |
108 | 57 |
end |
58 |
end), |
|
59 |
:update => (Proc.new do | pkg | |
|
60 |
if (File.exists? BUILD_DIR / 'stx' / 'stc' / '.hg' / 'hgrc') then |
|
61 |
update pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision |
|
62 |
else |
|
63 |
warn "Not updating #{pkg.name} as no HG repository found in #{BUILD_DIR / 'stx' / 'stc'}" |
|
102
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
64 |
end |
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
65 |
end) |
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
66 |
|
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
67 |
package "stx:librun", :repository => :'jv-branch:private', :branch => 'jv', revision: 'stx-8.0.0', |
108 | 68 |
:checkout => (Proc.new do | pkg | |
102
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
69 |
# Download pre-compiled binary if user has no access to source code |
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
70 |
if Rake::Stx::Configuration::Repository::find(pkg.repository) then |
108 | 71 |
checkout pkg.repository, 'stx/librun', :branch => pkg.branch, :revision => pkg.revision |
102
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
72 |
else |
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
73 |
download_blob_matching(/prebuilt-librun/, BUILD_DIR / 'stx') |
108 | 74 |
end |
75 |
end), |
|
76 |
:update => (Proc.new do | pkg | |
|
77 |
if (File.exists? BUILD_DIR / 'stx' / 'librun' / '.hg' / 'hgrc') then |
|
78 |
update pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision |
|
79 |
else |
|
80 |
warn "Not updating #{pkg.name} as no HG repository found in #{BUILD_DIR / 'stx' / 'librun'}" |
|
102
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
81 |
end |
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
82 |
end) |
fc572bd895f2
Cleanup: treat stx:stc & stx:librun as normal packages
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
101
diff
changeset
|
83 |
|
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
84 |
# FORKED libraries |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
85 |
# ====================================================================== |
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
86 |
package "stx:libbasic", :repository => :'jv-branch:public', :branch => 'jv', revision: 'stx-8.0.0' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
87 |
package "stx:libbasic2", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
88 |
package "stx:libbasic3", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
89 |
package "stx:libcomp", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
90 |
package "stx:libtool", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
91 |
package "stx:libtool2",:repository => :'jv-branch:public', :branch => 'jv' |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
92 |
|
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
93 |
package "stx:libview", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
94 |
package "stx:libview2", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
95 |
package "stx:libwidg", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
96 |
package "stx:libwidg2", :repository => :'jv-branch:public', :branch => 'jv' |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
97 |
|
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
98 |
package "stx:goodies/sunit", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
99 |
package "stx:goodies/monticello", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
100 |
package "stx:goodies/refactoryBrowser", :repository => :'jv-branch:public', :branch => 'jv' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
101 |
package "stx:libsvn", :repository => :'jv-branch:public', :branch => 'jv' |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
102 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
103 |
# Some more development tools to build and preload |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
104 |
# ====================================================================== |
10
cb3e0e3ca28f
Fixed repository specifications to allow anonymous checkout.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
105 |
package "stx:goodies/xml/vw", :repository => :'exept:public' |
55
a5eedad6187d
Project `stx:jv-branch`: Added package "stx:goodies/xml/stx"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
54
diff
changeset
|
106 |
package "stx:goodies/xml/stx", :repository => :'exept:public' |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
107 |
|
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
108 |
# SmallSense |
10
cb3e0e3ca28f
Fixed repository specifications to allow anonymous checkout.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
109 |
package "stx:goodies/regex", :repository => :'exept:public' |
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
110 |
package "stx:goodies/smallsense", :repository => :'jv-branch:public' |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
package "stx:goodies/smallsense/refactoring_custom" |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
112 |
|
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
113 |
|
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
114 |
tasks do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
115 |
# Build and install documentation for stx:libjava and stx:libscm/mercurial |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
116 |
task "install:pre" do |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
117 |
chdir BUILD_DIR / 'stx' / 'libjava' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
118 |
make "doc-install" |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
119 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
120 |
chdir BUILD_DIR / 'stx' / 'libscm' / 'mercurial' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
121 |
make "doc-install" |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
124 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
125 |
# Try execute run the VM if it starts up |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
126 |
task :'compile:post' do |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
127 |
if PROJECT == 'stx:jv-branch' then |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
128 |
chdir BUILD_DIR / 'stx' / 'projects' / 'smalltalk' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
129 |
if win32? |
198
9d1750614ee9
Cleanup: removed (now obsolete) hack for `stx:libtool`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
197
diff
changeset
|
130 |
sh "smalltalk.bat --abortOnSEGV -I --quick --eval \"Stdout nextPutLine:'OKay, VM runs'. Smalltalk exit: 0\"" |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
131 |
else |
198
9d1750614ee9
Cleanup: removed (now obsolete) hack for `stx:libtool`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
197
diff
changeset
|
132 |
sh "./smalltalk --abortOnSEGV -I --quick --eval \"Stdout nextPutLine:'OKay, VM runs'. Smalltalk exit: 0\"" |
101
32f9287b419a
Cleanup: Nuked leftover code for using BCC 5.5.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
93
diff
changeset
|
133 |
end |
32f9287b419a
Cleanup: Nuked leftover code for using BCC 5.5.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
93
diff
changeset
|
134 |
end |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
137 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
138 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
139 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
140 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
141 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
142 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
143 |
project :'stx:jv-branch' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
144 |
# Standard Smalltalk/X IDE with some nice libraries preloaded |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
145 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
146 |
import :'stx:jv-branch-core' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
147 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
148 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
149 |
app_name "smalltalkx-jv-branch" |
195
75e457fec9cc
Fixed slip in `hglib.rb` introduced in commit e665031cade7
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
190
diff
changeset
|
150 |
app_version "8.0.0_#{BUILD_ID}" |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
151 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
152 |
# Forked PetitParser |
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
153 |
package "stx:goodies/petitparser", :repository => :'jv-branch:public', :link => false |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
154 |
package "stx:goodies/petitparser/tests", :link => false |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
155 |
package "stx:goodies/petitparser/analyzer", :link => false |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
156 |
package "stx:goodies/petitparser/analyzer/tests", :link => false |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
157 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
158 |
# Monticello |
10
cb3e0e3ca28f
Fixed repository specifications to allow anonymous checkout.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
159 |
package "stx:libcompat", :repository => :'exept:public' |
cb3e0e3ca28f
Fixed repository specifications to allow anonymous checkout.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8
diff
changeset
|
160 |
package "stx:goodies/communication", :repository => :'exept:public' |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
161 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
162 |
# Java support |
184
cd1312f41a17
8.0.0: Fixups after merging new branch "feature-94-revamp-thinlocks"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
177
diff
changeset
|
163 |
package "stx:libjava", :repository => :'jv-branch:public', revision: 'stx-8.0.0' |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
164 |
package "stx:libjava/tools" |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
165 |
package "stx:libjava/experiments" |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
166 |
#package "stx:libjava/examples" :link => false |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
167 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
168 |
# Smalltalk/X IDE |
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
169 |
application 'stx:projects/smalltalk', :repository => :'jv-branch:public', :branch => 'jv' |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
170 |
|
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
171 |
package 'stx:libscm', :repository => :'jv-branch:public' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
172 |
package 'stx:libscm/common', :repository => :'jv-branch:public' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
173 |
package 'stx:libscm/mercurial', :repository => :'jv-branch:public' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
174 |
package 'stx:libscm/mercurial/monticello', :repository => :'jv-branch:public' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
175 |
package 'stx:goodies/ring', :repository => :'jv-branch:public', :link => false |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
176 |
package 'stx:goodies/libcairo', :repository => :'jv-branch:public', :link => false |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
177 |
package 'stx:goodies/cypress', :repository => :'jv-branch:public' |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
178 |
package "stx:goodies/xmlsuite", :repository => :'jv-branch:public' |
93
650412e81596
Automatically extract package dependencies from project definition file
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
82
diff
changeset
|
179 |
package "stx:goodies/loggia", :repository => :'exept:public', :link => false |
170
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
180 |
package 'stx:goodies/smaCC',:repository => :'jv-branch:public' |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
181 |
package 'stx:goodies/regression',:repository => :'jv-branch:public', :branch => 'jv', revision: 'stx-8.0.0', :link => false |
c0383fb4e51f
Rakefiles: give repository names more meaningful names
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
169
diff
changeset
|
182 |
package "stx:goodies/builder", :repository => :'jv-branch:public',:branch => 'jv', :link => false |
67
75b6eb7b781c
Added support for canonical, upstream and staging repositores.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
64
diff
changeset
|
183 |
package "stx:goodies/builder/reports" |
49
53414f4122e3
Project stx:jv-branch: make `rake test` to run tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
47
diff
changeset
|
184 |
|
53414f4122e3
Project stx:jv-branch: make `rake test` to run tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
47
diff
changeset
|
185 |
# Define a "default" test suite, i.e., a set of tests that are run when |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
186 |
# user does `rake test`. |
104
3c610bb4c1f0
CI: Remove hack to disable standard test suite on SWING CI
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
187 |
package 'stx:libview/tests', :test => true; |
197
b0874b09676a
Added tests for `stx:libwidg` and `stx:libtool`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
195
diff
changeset
|
188 |
package 'stx:libwidg/tests', :test => true; |
b0874b09676a
Added tests for `stx:libwidg` and `stx:libtool`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
195
diff
changeset
|
189 |
package 'stx:libtool/tests', :test => true; |
104
3c610bb4c1f0
CI: Remove hack to disable standard test suite on SWING CI
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
190 |
package 'stx:libjava', :test => true; |
3c610bb4c1f0
CI: Remove hack to disable standard test suite on SWING CI
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
191 |
package 'stx:libjava/tools', :test => true; |
3c610bb4c1f0
CI: Remove hack to disable standard test suite on SWING CI
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
192 |
package 'stx:goodies/regression', :test => true; |
3c610bb4c1f0
CI: Remove hack to disable standard test suite on SWING CI
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
102
diff
changeset
|
193 |
package 'stx:libscm/mercurial', :test => true; |
108 | 194 |
|
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
195 |
tasks do |
54
a169d82bb0b0
Project stx:jv-branch: oops, checkout CharacterEncoderCodeGenerator into stx:goodies
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
196 |
# We need to checkout CharacterEncoderCodeGenerator from stx:goodies |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
197 |
# because RegressionTests::CharacterTests>>test01_CaseTesting needs that. |
82
e6de30bc6669
Oops, fixed checkout rule for `CharacterEncoderCodeGenerator.st` (needed by tests)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
70
diff
changeset
|
198 |
task 'checkout:post' => BUILD_DIR / 'stx' / 'goodies' / 'CharacterEncoderCodeGenerator.st' |
e6de30bc6669
Oops, fixed checkout rule for `CharacterEncoderCodeGenerator.st` (needed by tests)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
70
diff
changeset
|
199 |
file (BUILD_DIR / 'stx' / 'goodies' / 'CharacterEncoderCodeGenerator.st') do |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
200 |
checkout(:'exept:public', 'stx/goodies/CharacterEncoderCodeGenerator.st') |
54
a169d82bb0b0
Project stx:jv-branch: oops, checkout CharacterEncoderCodeGenerator into stx:goodies
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
53
diff
changeset
|
201 |
end |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
202 |
|
4
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
203 |
task :'install:main' => :'dist:jv-branch' |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
204 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
205 |
task :'dist:jv:pre' => :'stx:jv-branch:extractver' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
206 |
|
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
207 |
if win32? |
4
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
208 |
app_name = project.app_name || (raise Exception.new("No app_name property specified")) |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
209 |
app_version = project.app_version || (raise Exception.new("No app_version property specified")) |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
210 |
version = app_version.split('_').first |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
211 |
|
4
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
212 |
install_dir = ARTIFACTS_DIR / BUILD_NAME |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
213 |
bin_dir = install_dir / 'bin' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
214 |
|
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
215 |
|
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
216 |
cairo_dlls = nil |
169
f9f519bb10b6
Use GNU target triplets to specify build targets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
217 |
if /i686/ =~ BUILD_TARGET |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
218 |
cairo_dlls = [ |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
219 |
'libcairo-2.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
220 |
'libfontconfig-1.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
221 |
'libfreetype-6.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
222 |
'liblzma-5.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
223 |
'libpixman-1-0.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
224 |
'libpng15-15.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
225 |
'libxml2-2.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
226 |
'zlib1.dll' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
227 |
] |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
228 |
else |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
229 |
cairo_dlls = [ |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
230 |
'fontconfig.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
231 |
'iconv.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
232 |
'libcairo-2.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
233 |
'libpng16.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
234 |
'libxml2.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
235 |
'pixman-1.dll' , |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
236 |
'zlib1.dll' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
237 |
] |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
238 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
239 |
|
13
ba905210e6bb
Make more suitable guess of actual version string
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
240 |
task :'dist:jv:post' => [ :'stx:jv-branch:extractver' , :'dist:jv:variables' ] |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
241 |
cairo_dlls.each do | dll | |
13
ba905210e6bb
Make more suitable guess of actual version string
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
242 |
task :'dist:jv:post' => [ bin_dir / dll ] |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
243 |
file bin_dir / dll do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
244 |
mkdir_p bin_dir |
169
f9f519bb10b6
Use GNU target triplets to specify build targets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
245 |
cp BUILD_DIR / 'stx' / 'goodies' / 'libcairo' / 'support' / 'win32' / (/i686/ =~ BUILD_TARGET ? 'i586' : 'x86_64') / dll , bin_dir / dll |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
246 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
247 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
248 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
249 |
|
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
250 |
task :'dist:jv-branch' => [ :'dist:jv:all', |
4
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
251 |
:'dist:jv:doc' ] |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
252 |
|
4
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
253 |
task :'install:main' => [:'stx:jv-branch:extractver'] |
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
254 |
task :'artifacts:main' => [:'stx:jv-branch:extractver'] |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
255 |
task :'artifacts:post' => [:'artifacts:prebuilt-stc', :'artifacts:prebuilt-librun' ] |
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
256 |
|
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
257 |
# Add dependency of stc and librun archive tasks on :'stx:jv-branch:extractver' so |
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
258 |
# they create archives with up-to-date version. |
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
259 |
task :'artifacts:prebuilt-stc' => :'stx:jv-branch:extractver' |
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
260 |
task :'artifacts:prebuilt-librun' => :'stx:jv-branch:extractver' |
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
261 |
|
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
262 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
263 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
264 |
|
4
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
265 |
task :'stx:jv-branch:extractver' => :'setup' do |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
266 |
ver = nil |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
267 |
if win32? |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
268 |
stx_exe = 'stx.com' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
269 |
else |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
270 |
stx_exe = './stx' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
271 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
272 |
chdir BUILD_DIR / 'stx' / 'projects' / 'smalltalk' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
273 |
ver = %x(#{stx_exe} --eval "Stdout nextPutAll: Smalltalk versionString") |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
274 |
if $?.exitstatus != 0 |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
275 |
raise Exception.new("Failed extract version from stx") |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
276 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
277 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
278 |
ver = (ver.split(".")[0..2]).join(".") |
7
b6fe3a90f6e0
Added `zip()` & `unzip()` extensions to easily create / extract archives from build scripts.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4
diff
changeset
|
279 |
project.app_version "#{ver}_#{BUILD_ID}" |
4
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
280 |
# This is really ugly. We need to clean that up... |
169
f9f519bb10b6
Use GNU target triplets to specify build targets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
165
diff
changeset
|
281 |
BUILD_NAME.replace "#{project.app_name}-#{project.app_version}_#{BUILD_TARGET}" |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
282 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
283 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
284 |
|
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
285 |
project :'stx:jv-branch:for-reports-only' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
286 |
import :'stx:jv-branch' |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
287 |
|
109
d4103254e0a8
CI: Fixed old-style CI test jobs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
108
diff
changeset
|
288 |
# Sigh, if we're about to run tests only, we don't want to |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
289 |
# run standard tests so we need to clean test flag. |
109
d4103254e0a8
CI: Fixed old-style CI test jobs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
108
diff
changeset
|
290 |
package 'stx:libview/tests', :test => false; |
d4103254e0a8
CI: Fixed old-style CI test jobs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
108
diff
changeset
|
291 |
package 'stx:libjava', :test => false; |
d4103254e0a8
CI: Fixed old-style CI test jobs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
108
diff
changeset
|
292 |
package 'stx:libjava/tools', :test => false; |
d4103254e0a8
CI: Fixed old-style CI test jobs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
108
diff
changeset
|
293 |
package 'stx:goodies/regression', :test => false; |
d4103254e0a8
CI: Fixed old-style CI test jobs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
108
diff
changeset
|
294 |
package 'stx:libscm/mercurial', :test => false; |
d4103254e0a8
CI: Fixed old-style CI test jobs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
108
diff
changeset
|
295 |
|
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
296 |
tasks do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
297 |
task :'stx:projects/smalltalk:pre' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
298 |
chdir BUILD_DIR / 'stx' / 'projects' / 'smalltalk' do |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
299 |
if win32? |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
300 |
system "bmake clobber" |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
301 |
else |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
302 |
system "make clobber" |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
303 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
304 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
305 |
end |
177
6ad33f64e566
Rakefiles: make use of (new) `include` parameter to `zip()`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
170
diff
changeset
|
306 |
|
4
48ec8a59ced4
Renamed `dist` target to `install`. Added new target `artifacts` (mainly) for Jenkins builds.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
307 |
clear :'dist:install' => :'dist:jv-branch' |
0
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
308 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
309 |
end |
f46260ba26b1
Initial shot of "new" rake-based builder
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
310 |