Run nmake check on Actions (#4487)
* Run nmake check on Actions * Skip tests not working in mswin GitHub Actions * Override TEMP * Revert "Skip tests not working in mswin GitHub Actions" This reverts commit 544d2575fcdf23ae63cd25aa03fce10c28b259f2. * Revert "Revert "Skip tests not working in mswin GitHub Actions"" This reverts commit e1f8ad7862c9c4be52dc6e1031a004621eb07e6e. * Fix timeouts * Skip some more broken tests * Update windows.yml * Add a guard for rbasic_spec * Revert "Update windows.yml" This reverts commit bc9694b6b3b9594d406378d15ca11723fb052bc8. * Skip the ensure clause * Simplify the ensure
This commit is contained in:
parent
07f055bb13
commit
cc1ea6e023
Notes:
git
2021-05-12 07:19:11 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>
20
.github/workflows/windows.yml
vendored
20
.github/workflows/windows.yml
vendored
@ -4,7 +4,7 @@ jobs:
|
|||||||
make:
|
make:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
test_task: [test]
|
test_task: [check] # to make job names consistent
|
||||||
os: [windows-2019]
|
os: [windows-2019]
|
||||||
vs: [2019]
|
vs: [2019]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -62,10 +62,24 @@ jobs:
|
|||||||
nmake extract-extlibs
|
nmake extract-extlibs
|
||||||
nmake
|
nmake
|
||||||
- name: nmake test
|
- name: nmake test
|
||||||
timeout-minutes: 30
|
timeout-minutes: 5
|
||||||
run: |
|
run: |
|
||||||
call "%VCVARS%"
|
call "%VCVARS%"
|
||||||
nmake ${{ matrix.test_task }}
|
nmake test
|
||||||
|
- name: nmake test-all
|
||||||
|
timeout-minutes: 60
|
||||||
|
run: |
|
||||||
|
call "%VCVARS%"
|
||||||
|
# %TEMP% is inconsistent with %TMP% and test-all expects they are consistent.
|
||||||
|
# https://github.com/actions/virtual-environments/issues/712#issuecomment-613004302
|
||||||
|
set TMP=%USERPROFILE%\AppData\Local\Temp
|
||||||
|
set TEMP=%USERPROFILE%\AppData\Local\Temp
|
||||||
|
nmake test-all
|
||||||
|
- name: nmake test-spec
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: |
|
||||||
|
call "%VCVARS%"
|
||||||
|
nmake test-spec
|
||||||
- uses: k0kubun/action-slack@v2.0.0
|
- uses: k0kubun/action-slack@v2.0.0
|
||||||
with:
|
with:
|
||||||
payload: |
|
payload: |
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
require_relative 'spec_helper'
|
require_relative 'spec_helper'
|
||||||
require_relative 'shared/rbasic'
|
require_relative 'shared/rbasic'
|
||||||
load_extension("rbasic")
|
load_extension("rbasic")
|
||||||
|
return if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
load_extension("data")
|
load_extension("data")
|
||||||
load_extension("array")
|
load_extension("array")
|
||||||
|
|
||||||
|
@ -268,6 +268,7 @@ class TestResolvDNS < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_no_server
|
def test_no_server
|
||||||
|
skip if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
u = UDPSocket.new
|
u = UDPSocket.new
|
||||||
u.bind("127.0.0.1", 0)
|
u.bind("127.0.0.1", 0)
|
||||||
_, port, _, host = u.addr
|
_, port, _, host = u.addr
|
||||||
|
@ -1257,6 +1257,7 @@ class TestFileExhaustive < Test::Unit::TestCase
|
|||||||
assert_equal(regular_file, File.dirname(regular_file, 0))
|
assert_equal(regular_file, File.dirname(regular_file, 0))
|
||||||
assert_equal(@dir, File.dirname(regular_file, 1))
|
assert_equal(@dir, File.dirname(regular_file, 1))
|
||||||
assert_equal(File.dirname(@dir), File.dirname(regular_file, 2))
|
assert_equal(File.dirname(@dir), File.dirname(regular_file, 2))
|
||||||
|
return if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # rootdir and tmpdir are in different drives
|
||||||
assert_equal(rootdir, File.dirname(regular_file, regular_file.count('/')))
|
assert_equal(rootdir, File.dirname(regular_file, regular_file.count('/')))
|
||||||
assert_raise(ArgumentError) {File.dirname(regular_file, -1)}
|
assert_raise(ArgumentError) {File.dirname(regular_file, -1)}
|
||||||
end
|
end
|
||||||
|
@ -106,6 +106,7 @@ install:
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_build_extensions
|
def test_build_extensions
|
||||||
|
skip if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
@spec.extensions << 'ext/extconf.rb'
|
@spec.extensions << 'ext/extconf.rb'
|
||||||
|
|
||||||
ext_dir = File.join @spec.gem_dir, 'ext'
|
ext_dir = File.join @spec.gem_dir, 'ext'
|
||||||
@ -141,6 +142,7 @@ install:
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_build_extensions_with_gemhome_with_space
|
def test_build_extensions_with_gemhome_with_space
|
||||||
|
skip if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
new_gemhome = File.join @tempdir, 'gem home'
|
new_gemhome = File.join @tempdir, 'gem home'
|
||||||
File.rename(@gemhome, new_gemhome)
|
File.rename(@gemhome, new_gemhome)
|
||||||
@gemhome = new_gemhome
|
@gemhome = new_gemhome
|
||||||
@ -161,6 +163,7 @@ install:
|
|||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
skip if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
|
|
||||||
@spec.extensions << 'ext/extconf.rb'
|
@spec.extensions << 'ext/extconf.rb'
|
||||||
|
|
||||||
|
@ -1482,6 +1482,7 @@ gem 'other', version
|
|||||||
|
|
||||||
def test_install_extension_and_script
|
def test_install_extension_and_script
|
||||||
skip "Makefile creation crashes on jruby" if Gem.java_platform?
|
skip "Makefile creation crashes on jruby" if Gem.java_platform?
|
||||||
|
skip if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
|
|
||||||
@spec = setup_base_spec
|
@spec = setup_base_spec
|
||||||
@spec.extensions << "extconf.rb"
|
@spec.extensions << "extconf.rb"
|
||||||
|
@ -63,6 +63,7 @@ class TestGemResolverGitSpecification < Gem::TestCase
|
|||||||
|
|
||||||
def test_install_extension
|
def test_install_extension
|
||||||
skip if Gem.java_platform?
|
skip if Gem.java_platform?
|
||||||
|
skip if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
name, _, repository, = git_gem 'a', 1 do |s|
|
name, _, repository, = git_gem 'a', 1 do |s|
|
||||||
s.extensions << 'ext/extconf.rb'
|
s.extensions << 'ext/extconf.rb'
|
||||||
end
|
end
|
||||||
|
@ -247,6 +247,7 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_short_filename
|
def test_short_filename
|
||||||
return if File.executable?(__FILE__) # skip on strange file system
|
return if File.executable?(__FILE__) # skip on strange file system
|
||||||
|
return if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
:CGIInterpreter => TestWEBrick::RubyBin,
|
:CGIInterpreter => TestWEBrick::RubyBin,
|
||||||
|
@ -323,6 +323,7 @@ class TestWEBrickHTTPProxy < Test::Unit::TestCase
|
|||||||
end if defined?(OpenSSL::SSL)
|
end if defined?(OpenSSL::SSL)
|
||||||
|
|
||||||
def test_upstream_proxy
|
def test_upstream_proxy
|
||||||
|
return if /mswin/ =~ RUBY_PLATFORM && ENV.key?('GITHUB_ACTIONS') # not working from the beginning
|
||||||
# Testing GET or POST through the upstream proxy server
|
# Testing GET or POST through the upstream proxy server
|
||||||
# Note that the upstream proxy server works as the origin server.
|
# Note that the upstream proxy server works as the origin server.
|
||||||
# +------+
|
# +------+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user