Commit 1dbabb2c by Alex Chaffee

really fix sh CI issue

parent a38e60dd
...@@ -56,17 +56,16 @@ describe "annotate inside Rails, using #{CURRENT_RUBY}" do ...@@ -56,17 +56,16 @@ describe "annotate inside Rails, using #{CURRENT_RUBY}" do
klass = "Annotate::Validations::#{base_dir.gsub('.', '_').classify}".constantize klass = "Annotate::Validations::#{base_dir.gsub('.', '_').classify}".constantize
Dir.chdir(temp_dir) do Dir.chdir(temp_dir) do
output = ` # bash is required by rvm
( # the shopt command forces us out of "strict sh" mode
export AUTOMATED_TEST="#{BASEDIR}" commands = <<-BASH
export AUTOMATED_TEST="#{BASEDIR}";
# First, make sure we're not in 'sh' mode (I.E. strict-superset-of-Bourne shopt -u -o posix;
# mode), as RVM doesn't like this... source .rvmrc &&
shopt -u -o posix (bundle check || bundle install) &&
#{klass.test_commands}
source .rvmrc && BASH
#{klass.test_commands} output = `/usr/bin/env bash -c '#{commands}' 2>&1`.chomp
) 2>&1`.chomp
klass.verify_output(output) klass.verify_output(output)
klass.verify_files(test_rig) klass.verify_files(test_rig)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment