mswin-build 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -4
- data/README.md +3 -2
- data/config/vc10-x86-trunk.yaml +2 -1
- data/lib/mswin-build/builder.rb +39 -20
- data/lib/mswin-build/version.rb +1 -1
- data/mswin-build.gemspec +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2146ebe309631bdb2f08cd166be30bd538d269c6be26927073cb42df5e199f19
|
4
|
+
data.tar.gz: acf59186dc2ad2fde69ff38c7e814da6b7f7f3f326f1d65bdb3e5991a1db1499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90a52f708a1bfdb8b3df634e59eb175193c8e0e1038d750f827e22369e601670668baccc2736639fccf0d59953b1404d71d9bc489589921af237bea7756ddabb
|
7
|
+
data.tar.gz: a7fa6028d13c82aae1d8606e549cbcabe7fa07f3ed7e6eae6f966b063923a01109fcff501f2ccfed84f5beff1c9f16b676f6eb017466446e03f24963b3cd7348
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -16,10 +16,11 @@ A low quality clone of https://github.com/akr/chkbuild for mswin.
|
|
16
16
|
Requirements
|
17
17
|
------------
|
18
18
|
|
19
|
-
* ruby 2.
|
19
|
+
* ruby 2.4 or later
|
20
20
|
* sed
|
21
21
|
* bison
|
22
22
|
* svn
|
23
|
+
* git
|
23
24
|
* gzip
|
24
25
|
* and of cource, Visual C++ 6 or newer
|
25
26
|
|
@@ -33,7 +34,7 @@ Write a config file in config directory, and run `bin/build.rb`.
|
|
33
34
|
License
|
34
35
|
-------
|
35
36
|
|
36
|
-
Copyright (c) 2013 NAKAMURA Usaku usa@garbagecollect.jp
|
37
|
+
Copyright (c) 2013-2019 NAKAMURA Usaku usa@garbagecollect.jp
|
37
38
|
|
38
39
|
Redistribution and use in source and binary forms, with or without
|
39
40
|
modification, are permitted provided that the following conditions are met:
|
data/config/vc10-x86-trunk.yaml
CHANGED
data/lib/mswin-build/builder.rb
CHANGED
@@ -22,10 +22,13 @@ module MswinBuild
|
|
22
22
|
@config["baseruby"] = baseruby if baseruby
|
23
23
|
@config["bison"] ||= "bison"
|
24
24
|
@config["svn"] ||= "svn"
|
25
|
+
@config["git"] ||= "git"
|
25
26
|
@config["gzip"] ||= "gzip"
|
26
27
|
|
27
28
|
raise "baseruby not specified" unless @config["baseruby"]
|
28
29
|
raise "repository not specified" unless @config["repository"]
|
30
|
+
@is_git = @config["repository"].end_with?(".git")
|
31
|
+
raise "branch not specified" if @is_git && @config["branch"].to_s.empty?
|
29
32
|
raise "logdir not specfied" unless @config["logdir"]
|
30
33
|
|
31
34
|
@config["azure_key"] = azure_key if azure_key
|
@@ -48,6 +51,7 @@ module MswinBuild
|
|
48
51
|
@config["timeout"]["bison-version"] ||= @config["timeout"]["default_short"]
|
49
52
|
@config["timeout"]["svn/ruby"] ||= @config["timeout"]["default"]
|
50
53
|
@config["timeout"]["svn/info"] ||= @config["timeout"]["default_short"]
|
54
|
+
@config["timeout"]["git/ruby"] ||= @config["timeout"]["default"]
|
51
55
|
@config["timeout"]["configure"] ||= @config["timeout"]["default"]
|
52
56
|
@config["timeout"]["cc-version"] ||= @config["timeout"]["default_short"]
|
53
57
|
@config["timeout"]["miniruby"] ||= @config["timeout"]["default"]
|
@@ -150,18 +154,26 @@ module MswinBuild
|
|
150
154
|
end
|
151
155
|
|
152
156
|
def get_current_revision
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
$1
|
158
|
-
else
|
157
|
+
if @is_git
|
158
|
+
begin
|
159
|
+
`#{@config['git']} ls-remote #{@config['repository']} #{@config['branch']}`.split(/ +/, 2).first
|
160
|
+
rescue
|
159
161
|
nil
|
160
162
|
end
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
163
|
+
else
|
164
|
+
orig_lang = ENV["LANG"]
|
165
|
+
ENV["LANG"] = "C"
|
166
|
+
begin
|
167
|
+
if /^(?:SVN )?Last Changed Rev: (\d+)$/ =~ `#{@config['svn']} info #{@config['repository']} 2> NUL`
|
168
|
+
$1
|
169
|
+
else
|
170
|
+
nil
|
171
|
+
end
|
172
|
+
rescue
|
173
|
+
nil
|
174
|
+
ensure
|
175
|
+
ENV["LANG"] = orig_lang
|
176
|
+
end
|
165
177
|
end
|
166
178
|
end
|
167
179
|
|
@@ -347,16 +359,23 @@ module MswinBuild
|
|
347
359
|
end
|
348
360
|
|
349
361
|
define_buildmethod(:checkout) do |io, tmpdir|
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
362
|
+
if @is_git
|
363
|
+
# git/ruby
|
364
|
+
Dir.chdir(tmpdir) do
|
365
|
+
do_command(io, "git/ruby", "#{@config['git']} clone -q --branch #{@config['branch']} #{@config['repository']} ruby")
|
366
|
+
end
|
367
|
+
else
|
368
|
+
# svn/ruby
|
369
|
+
Dir.chdir(tmpdir) do
|
370
|
+
do_command(io, "svn/ruby", "#{@config['svn']} checkout #{@config['repository']} ruby")
|
371
|
+
end
|
354
372
|
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
373
|
+
# svn-info/ruby
|
374
|
+
@builddir = File.join(tmpdir, "ruby")
|
375
|
+
do_command(io, "svn-info/ruby", "#{@config['svn']} info", true) do |s|
|
376
|
+
if /^URL: (.*)$/ =~ `#{@config['svn']} info 2> NUL`
|
377
|
+
@data[:svn_url] = $1
|
378
|
+
end
|
360
379
|
end
|
361
380
|
end
|
362
381
|
end
|
@@ -489,7 +508,7 @@ module MswinBuild
|
|
489
508
|
end
|
490
509
|
|
491
510
|
define_buildmethod(:test_all) do |io, tmpdir|
|
492
|
-
define_failure_start_pattern(io, /\A *\d+\) (Failure|Error)/, /\A\d+ tests, \d+ assertions, [1-9]\d* failures, \d+ errors/, /\A\d+ tests, \d+ assertions, \d+ failures, [1-9]\d* errors
|
511
|
+
define_failure_start_pattern(io, /\A *\d+\) (Failure|Error)/, /\A\d+ tests, \d+ assertions, [1-9]\d* failures, \d+ errors/, /\A\d+ tests, \d+ assertions, \d+ failures, [1-9]\d* errors/)
|
493
512
|
ret = do_command(io, "test-all", "nmake -l TESTS=-v RUBYOPT=-w test-all", true, false, nil)
|
494
513
|
if !ret && !ret.nil?
|
495
514
|
io.rewind
|
data/lib/mswin-build/version.rb
CHANGED
data/mswin-build.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_development_dependency "bundler"
|
22
|
+
spec.add_development_dependency "bundler"
|
23
23
|
spec.add_development_dependency "rake"
|
24
24
|
spec.add_development_dependency "test-unit"
|
25
25
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mswin-build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- U.Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
|
-
|
105
|
-
rubygems_version: 2.6.12
|
104
|
+
rubygems_version: 3.1.0.pre1
|
106
105
|
signing_key:
|
107
106
|
specification_version: 4
|
108
107
|
summary: A low quality clone of https://github.com/akr/chkbuild for mswin.
|