Skip to content
Permalink
Browse files

Add test ext/readline in CI.

  • Loading branch information...
osyo-manga committed Jun 16, 2019
1 parent b738261 commit b710b4fa9b2f604ffacd6689e493326573d41121
Showing with 35 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +18 −1 .travis.yml
  3. +14 −0 Rakefile
@@ -6,5 +6,8 @@
/pkg/
/spec/reports/
/tmp/
/test/ext/
/test/lib/
/tool/
*.swp
Gemfile.lock
@@ -5,4 +5,21 @@ rvm:
before_install:
- gem update --system
- gem update bundler
script: rake
- mkdir -p ./test/ext/readline
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/readline/helper.rb -P ./test/ext/readline
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/readline/test_readline.rb -P ./test/ext/readline
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/readline/test_readline_history.rb -P ./test/ext/readline
- mkdir -p ./tool/
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/tool/colorize.rb -P ./tool
- mkdir -p ./test/lib/
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/lib/leakchecker.rb -P ./test/lib
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/lib/envutil.rb -P ./test/lib
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/lib/find_executable.rb -P ./test/lib
- mkdir -p ./test/lib/unit/minitest
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/lib/minitest/unit.rb -P ./test/lib/minitest
- mkdir -p ./test/lib/unit/test
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/lib/test/unit.rb -P ./test/lib/test
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/lib/test/unit/assertions.rb -P ./test/lib/test/unit
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/lib/test/unit/parallel.rb -P ./test/lib/test/unit
- wget https://raw.githubusercontent.com/ruby/ruby/trunk/test/lib/test/unit/testcase.rb -P ./test/lib/test/unit
script: rake ci-test
@@ -21,4 +21,18 @@ end

task test: ENCODING_LIST.keys


ENCODING_LIST.each_pair do |task_name, encoding|
Rake::TestTask.new("ci-#{task_name}") do |t|
t.ruby_opts << %Q{-I. -e "RELINE_TEST_ENCODING=Encoding.find('#{encoding.name}')"}
t.libs << 'test'
t.libs << 'lib'
t.libs << 'test/lib'
t.loader = :direct
t.pattern = 'test/**/test_*.rb'
end
end

task "ci-test": ENCODING_LIST.keys.map { |task_name| "ci-#{task_name}" }

task default: :test

0 comments on commit b710b4f

Please sign in to comment.
You can’t perform that action at this time.