mswin-build 1.1.1 → 1.1.2

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
2
  SHA1:
3
- metadata.gz: ef8ffb17f2b65277994eb03de262f14ac5055bd6
4
- data.tar.gz: 42b4bff8a9a4a37d7aa1345921e19ea499829f14
3
+ metadata.gz: 04dd66454d1375114da0bdc7c13e8caade4177d5
4
+ data.tar.gz: d042c5b0f15c2e0434d5542c7387eedb87b313ba
5
5
  SHA512:
6
- metadata.gz: 801e3996986c90fc01854d61eaa675ba28fdbf8d99bf095a500515e9589fce4c6d68aec0c3192ab63e316fde0dd8c1d883a2818026dd106c1a6a9e28e89aa243
7
- data.tar.gz: 5daafc2900cca3ce36c98fe167865ac00b09e1aab10f4dcc6044356c86ff1ad5bcb6ea081b374d6462dd274c4ccf95bf7c8efe20b5af41b0269c75d6160d690d
6
+ metadata.gz: 3afae83b34dba29b69425e3452f2eda1da721ab91ebae7d635a76013436bac846bfb7846378c3980a930e47f1a0cb0b7cf89cc3c249a75c34ff59f43d8cf03ec
7
+ data.tar.gz: 1333f4d3a83d48fe9c7a6c497852193455e867600c24b31eb694c0def0a6c65784b060a89dd9e3084b794b8280511a125955cc8f648d6e609cd83d632ff5fa08
@@ -62,6 +62,7 @@ module MswinBuild
62
62
  @config["timeout"]["install-doc"] ||= @config["timeout"]["default"]
63
63
  @config["timeout"]["test-knownbug"] ||= @config["timeout"]["default"]
64
64
  @config["timeout"]["test-all"] ||= @config["timeout"]["default_long"]
65
+ @config["timeout"]["rubyspec"] ||= @config["timeout"]["default_long"]
65
66
 
66
67
  @last_status = nil
67
68
  end
@@ -167,7 +168,7 @@ module MswinBuild
167
168
  return nil unless file
168
169
 
169
170
  cmd = "#{@config['gzip']} -d -c #{File.join(@config['logdir'], file)}"
170
- `#{cmd}`.scan(/^(?:SVN )?Last Changed Rev: (\d+)$/) do |line|
171
+ `#{cmd}`.b.scan(/^(?:SVN )?Last Changed Rev: (\d+)$/) do |line|
171
172
  return $1
172
173
  end
173
174
  nil
@@ -298,7 +299,7 @@ module MswinBuild
298
299
  def self.define_buildmethod(method, &blk)
299
300
  define_method("bare_#{method.to_s}", blk)
300
301
  define_method(method) do |tmpdir|
301
- io = open(File.join(tmpdir, method.to_s), "w+")
302
+ io = open(File.join(tmpdir, method.to_s), "w+", encoding: "ascii-8bit")
302
303
  begin
303
304
  __send__("bare_#{method.to_s}", io, tmpdir)
304
305
  ensure
@@ -487,9 +488,28 @@ module MswinBuild
487
488
  end
488
489
 
489
490
  define_buildmethod(:rubyspec) do |io, tmpdir|
490
- heading(io, "rubyspec")
491
- io.puts "skipped."
492
- @links["rubyspec"] << "skipped"
491
+ if ruby_version >= "2.5.0"
492
+ ret = do_command(io, "rubyspec", 'nmake -l MSPECOPT="-V -f s" test-rubyspec', true, false, nil)
493
+ if !ret && !ret.nil?
494
+ io.rewind
495
+ if /^\d+ files?, \d+ examples?, \d+ expectations?, (\d+) failures?, (\d+) errors?, \d+ tagged/ =~ io.read
496
+ @title << "rubyspec:#{$1}F#{$2}E"
497
+ if $1.to_i + $2.to_i > 0
498
+ @data["failure_rubyspec"] = "#{$1}F#{$2}E"
499
+ @data[:result] = "failure"
500
+ end
501
+ else
502
+ @title << "failed(rubyspec)"
503
+ @data["failure_rubyspec"] = "failed"
504
+ @data[:result] = "failure"
505
+ end
506
+ end
507
+ else
508
+ heading(io, "rubyspec")
509
+ io.puts "skipped."
510
+ @data["failure_rubyspec"] = "skipped"
511
+ @links["rubyspec"] << "skipped"
512
+ end
493
513
  end
494
514
 
495
515
  define_buildmethod(:end_) do |io, tmpdir|
@@ -557,7 +577,7 @@ module MswinBuild
557
577
  open(File.join(tmpdir, "gathered"), "w") do |out|
558
578
  files.each_with_index do |io, i|
559
579
  next unless io
560
- io.reopen(io.path, "r")
580
+ io.reopen(io.path, "r", encoding: "ascii-8bit")
561
581
  begin
562
582
  io.each_line do |line|
563
583
  line = h(line) unless /^<a / =~ line
@@ -589,7 +609,17 @@ module MswinBuild
589
609
  end
590
610
  @data.each_pair do |k, v|
591
611
  if k.is_a?(String) && /^failure_/ =~ k
592
- v = "#{$'}:#{v}" if $' == "rubyspec"
612
+ if v == "failed"
613
+ v = "failed(#{$'})"
614
+ else
615
+ if $' == "rubyspec"
616
+ if v == "skipped"
617
+ next
618
+ else
619
+ v = "rubyspec:#{v}"
620
+ end
621
+ end
622
+ end
593
623
  title << v
594
624
  end
595
625
  end
@@ -1,3 +1,3 @@
1
1
  module MswinBuild
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -105,6 +105,7 @@ env:
105
105
  /^nmake -l install-doc\s*$/,
106
106
  /^nmake -l "OPTS=-v -q" test-knownbug\s*$/,
107
107
  /^nmake -l TESTS=-v RUBYOPT=-w test-all\s*$/,
108
+ /^nmake -l MSPECOPT="-V -f s" test-rubyspec\s*$/,
108
109
  ]
109
110
 
110
111
  ProcessMock.set_callback(commands, &blk)
@@ -167,6 +168,7 @@ env:
167
168
  assert_match(/\bsuccess\b/, recent)
168
169
  assert_match(/^<a href="[^"]+" name="[^"]+">[^<]+<\/a> r12345 /, recent)
169
170
  assert_not_match(/\bfailed\b/, recent)
171
+ assert_not_match(/\bskipped\b/, recent)
170
172
 
171
173
  recent = File.read(File.join(@tmpdir, "recent.ltsv"))
172
174
  assert_match(/\bresult:success\b/, recent)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mswin-build
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
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-04-30 00:00:00.000000000 Z
11
+ date: 2017-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.6.11
105
+ rubygems_version: 2.6.12
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: A low quality clone of https://github.com/akr/chkbuild for mswin.