mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
![MSP-Greg](/assets/img/avatar_default.png)
* Actions - Add nonMRIHead workflow - allow failure - JRuby, TruffleRuby Also, on Windows, add Ruby 2.2 and fix compile code * extconf.rb - minor fix for old Windows Rubies * JRuby fixes for CI 1. lib/puma/minissl.rb - add 'correct' constants so CI will run 2. test/shell/t*.rb - extend time to start by two seconds for JRuby * Delete .travis.yml
18 lines
395 B
Ruby
18 lines
395 B
Ruby
system "ruby -rrubygems -Ilib bin/puma -p 10102 -C test/shell/t1_conf.rb test/rackup/hello.ru &"
|
|
sleep (defined?(JRUBY_VERSION) ? 7 : 5)
|
|
system "curl http://localhost:10102/"
|
|
|
|
system "kill `cat t1-pid`"
|
|
|
|
sleep 1
|
|
|
|
log = File.read("t1-stdout")
|
|
|
|
File.unlink "t1-stdout" if File.file? "t1-stdout"
|
|
File.unlink "t1-pid" if File.file? "t1-pid"
|
|
|
|
if log =~ %r!GET / HTTP/1\.1!
|
|
exit 0
|
|
else
|
|
exit 1
|
|
end
|