Skip to content

Commit 9e6364c

Browse files
committed
trying to enable ruby-head tests in Travis
1 parent 972527d commit 9e6364c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rvm:
66
- jruby-19mode
77
- rbx-18mode
88
- rbx-19mode
9-
# - ruby-head # test again later: RedCloth not compiling
9+
- ruby-head # test again later: RedCloth not compiling
1010
- jruby-head
1111
- ree
1212
branches:

test/executable/suite.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ class TestCodeRayExecutable < Test::Unit::TestCase
1414

1515
ROOT_DIR = Pathname.new(File.dirname(__FILE__)) + '..' + '..'
1616
EXECUTABLE = ROOT_DIR + 'bin' + 'coderay'
17+
RUBY_COMMAND = RUBY_VERSION < '2.0.0' ? 'ruby -w' : 'ruby' # Ruby 2 currently throws warnings for bundler
1718
EXE_COMMAND =
1819
if RUBY_PLATFORM === 'java' && `ruby --ng -e '' 2> /dev/null` && $?.success?
1920
# use Nailgun
20-
'ruby --ng -wI%s %s'
21+
"#{RUBY_COMMAND}--ng -I%s %s"
2122
else
22-
'ruby -wI%s %s'
23+
"#{RUBY_COMMAND} -I%s %s"
2324
end % [ROOT_DIR + 'lib', EXECUTABLE]
2425

2526
def coderay args, options = {}

0 commit comments

Comments
 (0)