File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 3333 - DRIVER=hiredis REDIS_BRANCH=3.2
3434 - DRIVER=synchrony REDIS_BRANCH=3.0
3535 - DRIVER=synchrony REDIS_BRANCH=3.2
36- - DRIVER=ruby REDIS_BRANCH=unstable
36+ - DRIVER=ruby REDIS_BRANCH=4.0
3737
3838branches :
3939 only :
@@ -45,18 +45,14 @@ matrix:
4545 exclude :
4646 # hiredis
4747 - rvm : jruby-9.1.17.0
48- gemfile : .travis/Gemfile
4948 env : DRIVER=hiredis REDIS_BRANCH=3.0
5049 - rvm : jruby-9.1.17.0
51- gemfile : .travis/Gemfile
5250 env : DRIVER=hiredis REDIS_BRANCH=3.2
5351
5452 # synchrony
5553 - rvm : jruby-9.1.17.0
56- gemfile : .travis/Gemfile
5754 env : DRIVER=synchrony REDIS_BRANCH=3.0
5855 - rvm : jruby-9.1.17.0
59- gemfile : .travis/Gemfile
6056 env : DRIVER=synchrony REDIS_BRANCH=3.2
6157
6258notifications :
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ source "https://rubygems.org"
22
33gemspec :path => "../"
44
5+ # Using jruby-openssl 0.10.0, we get NPEs in jruby tests: https://github.com/redis/redis-rb/issues/756
6+ platform :jruby do
7+ gem 'jruby-openssl' , '<0.10.0'
8+ end
9+
510case ENV [ "DRIVER" ]
611when "hiredis"
712 gem "hiredis"
Original file line number Diff line number Diff line change 11source 'https://rubygems.org'
22
33gemspec
4+
5+ # Using jruby-openssl 0.10.0, we get NPEs in jruby tests: https://github.com/redis/redis-rb/issues/756
6+ platform :jruby do
7+ gem 'jruby-openssl' , '<0.10.0'
8+ end
Original file line number Diff line number Diff line change 1- TEST_FILES := $(shell find test -name * _test.rb -type f)
1+ TEST_FILES := $(shell find ./ test -name * _test.rb -type f)
22REDIS_BRANCH ?= unstable
33TMP := tmp
44BUILD_DIR := ${TMP}/cache/redis-${REDIS_BRANCH}
@@ -11,7 +11,7 @@ PORT := 6381
1111test : ${TEST_FILES}
1212 make start
1313 env SOCKET_PATH=${SOCKET_PATH} \
14- ruby -v $$( echo $? | tr ' ' '\n' | awk '{ print "-r./" $$0 }' ) -e ' '
14+ bundle exec ruby -v -e ' ARGV.each { |test_file| require test_file } ' ${TEST_FILES}
1515 make stop
1616
1717${TMP} :
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def run
4242 end
4343 end
4444 rescue => ex
45- $stderr. puts "Error running mock server: #{ ex . message } "
45+ $stderr. puts "Error running mock server: #{ ex . class } : #{ ex . message } "
4646 $stderr. puts ex . backtrace
4747 retry
4848 ensure
You can’t perform that action at this time.
0 commit comments