1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/shell/t2.rb
MSP-Greg 21a33f73a9
Actions - Add nonMRI workflow - allow failure - JRuby, TruffleRuby [changelog skip] (#2185)
* 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
2020-03-17 06:16:45 -06:00

19 lines
504 B
Ruby

system "ruby -rrubygems -Ilib bin/pumactl -F test/shell/t2_conf.rb start &"
sleep (defined?(JRUBY_VERSION) ? 7 : 5)
system "curl http://localhost:10103/"
out=`ruby -rrubygems -Ilib bin/pumactl -F test/shell/t2_conf.rb status`
system "ruby -rrubygems -Ilib bin/pumactl -F test/shell/t2_conf.rb stop"
sleep 1
log = File.read("t2-stdout")
File.unlink "t2-stdout" if File.file? "t2-stdout"
if log =~ %r(GET / HTTP/1\.1) && !File.file?("t2-pid") && out == "Puma is started\n"
exit 0
else
exit 1
end