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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3e3caa55131f9d640fb35fadfc93c7b53562d1b6
4
- data.tar.gz: fc4f25f04c6fc563025922ae88155294221d229e
2
+ SHA256:
3
+ metadata.gz: 2146ebe309631bdb2f08cd166be30bd538d269c6be26927073cb42df5e199f19
4
+ data.tar.gz: acf59186dc2ad2fde69ff38c7e814da6b7f7f3f326f1d65bdb3e5991a1db1499
5
5
  SHA512:
6
- metadata.gz: 19093b7cd32b3583125ffbd81c7feceaac6d1e7b5a79105a7e6089615da62e045d2c40102544db76c09471059599c4e6f1ebf16cc59141116630b1b4822ad2f4
7
- data.tar.gz: 301321b2a7e5fa1cb32749610ac4d9805db209a0ebc47164d0e7013e17fb832a39b241807f2b7ede812dc4037ad7ebb977cc40af7c40ec5432ab7cae648c9862
6
+ metadata.gz: 90a52f708a1bfdb8b3df634e59eb175193c8e0e1038d750f827e22369e601670668baccc2736639fccf0d59953b1404d71d9bc489589921af237bea7756ddabb
7
+ data.tar.gz: a7fa6028d13c82aae1d8606e549cbcabe7fa07f3ed7e6eae6f966b063923a01109fcff501f2ccfed84f5beff1c9f16b676f6eb017466446e03f24963b3cd7348
@@ -1,8 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.1
4
- - 2.3.4
5
- - 2.2.7
6
- - 2.1.10
3
+ - 2.6.3
4
+ - 2.5.5
5
+ - 2.4.6
7
6
  script:
8
7
  - bundle exec rake build
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.1 or later
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:
@@ -1,3 +1,4 @@
1
1
  baseruby:
2
- repository: http://svn.ruby-lang.org/repos/ruby/trunk
2
+ repository: https://github.com/ruby/ruby.git
3
+ branch: trunk
3
4
  logdir: logs/vc10-x86/ruby-trunk
@@ -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
- orig_lang = ENV["LANG"]
154
- ENV["LANG"] = "C"
155
- begin
156
- if /^(?:SVN )?Last Changed Rev: (\d+)$/ =~ `#{@config['svn']} info #{@config['repository']} 2> NUL`
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
- rescue
162
- nil
163
- ensure
164
- ENV["LANG"] = orig_lang
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
- # svn/ruby
351
- Dir.chdir(tmpdir) do
352
- do_command(io, "svn/ruby", "#{@config['svn']} checkout #{@config['repository']} ruby")
353
- end
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
- # svn-info/ruby
356
- @builddir = File.join(tmpdir, "ruby")
357
- do_command(io, "svn-info/ruby", "#{@config['svn']} info", true) do |s|
358
- if /^URL: (.*)$/ =~ `#{@config['svn']} info 2> NUL`
359
- @data[:svn_url] = $1
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/, /:\d+:in `/)
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
@@ -1,3 +1,3 @@
1
1
  module MswinBuild
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -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", "~> 1.3"
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.2.0
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: 2017-05-21 00:00:00.000000000 Z
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: '1.3'
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: '1.3'
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
- rubyforge_project:
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.