Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

really fix sh CI issue

  • Loading branch information...
commit 1dbabb2c8d6055500f5fedbb1bd5bdc32e015460 1 parent a38e60d
@alexch alexch authored
Showing with 10 additions and 11 deletions.
  1. +10 −11 spec/integration/integration_spec.rb
View
21 spec/integration/integration_spec.rb
@@ -56,17 +56,16 @@
klass = "Annotate::Validations::#{base_dir.gsub('.', '_').classify}".constantize
Dir.chdir(temp_dir) do
- output = `
- (
- export AUTOMATED_TEST="#{BASEDIR}"
-
- # First, make sure we're not in 'sh' mode (I.E. strict-superset-of-Bourne
- # mode), as RVM doesn't like this...
- shopt -u -o posix
-
- source .rvmrc &&
- #{klass.test_commands}
- ) 2>&1`.chomp
+ # bash is required by rvm
+ # the shopt command forces us out of "strict sh" mode
+ commands = <<-BASH
+export AUTOMATED_TEST="#{BASEDIR}";
+shopt -u -o posix;
+source .rvmrc &&
+(bundle check || bundle install) &&
+#{klass.test_commands}
+ BASH
+ output = `/usr/bin/env bash -c '#{commands}' 2>&1`.chomp
klass.verify_output(output)
klass.verify_files(test_rig)
end
Please sign in to comment.
Something went wrong with that request. Please try again.