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 33
33
- DRIVER=hiredis REDIS_BRANCH=3.2
34
34
- DRIVER=synchrony REDIS_BRANCH=3.0
35
35
- DRIVER=synchrony REDIS_BRANCH=3.2
36
- - DRIVER=ruby REDIS_BRANCH=unstable
36
+ - DRIVER=ruby REDIS_BRANCH=4.0
37
37
38
38
branches :
39
39
only :
@@ -45,18 +45,14 @@ matrix:
45
45
exclude :
46
46
# hiredis
47
47
- rvm : jruby-9.1.17.0
48
- gemfile : .travis/Gemfile
49
48
env : DRIVER=hiredis REDIS_BRANCH=3.0
50
49
- rvm : jruby-9.1.17.0
51
- gemfile : .travis/Gemfile
52
50
env : DRIVER=hiredis REDIS_BRANCH=3.2
53
51
54
52
# synchrony
55
53
- rvm : jruby-9.1.17.0
56
- gemfile : .travis/Gemfile
57
54
env : DRIVER=synchrony REDIS_BRANCH=3.0
58
55
- rvm : jruby-9.1.17.0
59
- gemfile : .travis/Gemfile
60
56
env : DRIVER=synchrony REDIS_BRANCH=3.2
61
57
62
58
notifications :
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ source "https://rubygems.org"
2
2
3
3
gemspec :path => "../"
4
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
9
+
5
10
case ENV [ "DRIVER" ]
6
11
when "hiredis"
7
12
gem "hiredis"
Original file line number Diff line number Diff line change 1
1
source 'https://rubygems.org'
2
2
3
3
gemspec
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)
2
2
REDIS_BRANCH ?= unstable
3
3
TMP := tmp
4
4
BUILD_DIR := ${TMP}/cache/redis-${REDIS_BRANCH}
@@ -11,7 +11,7 @@ PORT := 6381
11
11
test : ${TEST_FILES}
12
12
make start
13
13
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}
15
15
make stop
16
16
17
17
${TMP} :
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def run
42
42
end
43
43
end
44
44
rescue => ex
45
- $stderr. puts "Error running mock server: #{ ex . message } "
45
+ $stderr. puts "Error running mock server: #{ ex . class } : #{ ex . message } "
46
46
$stderr. puts ex . backtrace
47
47
retry
48
48
ensure
You can’t perform that action at this time.
0 commit comments