Skip to content

Commit

Permalink
Merge pull request #50 from osyo-manga/add-download-test-readline-in-…
Browse files Browse the repository at this point in the history
…github_actions_windows

Add donwload readline test files in Windows.
  • Loading branch information
aycabta authored Aug 25, 2019
2 parents d0e1a66 + 9d256b9 commit ffdfd1b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
run: |
gem install bundler --no-document
bundle install
- name: Download test readline
run: |
download-test_readline.bat
- name: Run test
run: |
rake ci-test
29 changes: 29 additions & 0 deletions download-test_readline.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@echo off
echo "-- Download test/readline --"
mkdir test\ext\readline
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/test/readline/helper.rb %CD%\test\ext\readline\helper.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/test/readline/test_readline.rb %CD%\test\ext\readline\test_readline.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/test/readline/test_readline_history.rb %CD%\test\ext\readline\test_readline_history.rb

mkdir tool
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/colorize.rb tool

mkdir tool\lib
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/leakchecker.rb %CD%\tool\lib\leakchecker.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/envutil.rb %CD%\tool\lib\envutil.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/colorize.rb %CD%\tool\lib\colorize.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/find_executable.rb %CD%\tool\lib\find_executable.rb

mkdir tool\lib\minitest
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/minitest/unit.rb %CD%\tool\lib\minitest\unit.rb

mkdir tool\lib\test\unit
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/test/unit.rb %CD%\tool\lib\test\unit.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/test/unit/assertions.rb %CD%\tool\lib\test\unit\assertions.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/test/unit/core_assertions.rb %CD%\tool\lib\test\unit\core_assertions.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/test/unit/parallel.rb %CD%\tool\lib\test\unit\parallel.rb
bitsadmin.exe /TRANSFER get_readline_test_file https://raw.githubusercontent.com/ruby/ruby/trunk/tool/lib/test/unit/testcase.rb %CD%\tool\lib\test\unit\testcase.rb

echo "-- Finish download test/readline --"

exit /b 0

0 comments on commit ffdfd1b

Please sign in to comment.