Permalink
Browse files

Globally set `--backtrace` flag for RSpec/Cucumber in CI

  • Loading branch information...
1 parent 31e3985 commit 35da1bb65a509955753a6527d715856cc291311c @mislav mislav committed Oct 9, 2014
Showing with 4 additions and 1 deletion.
  1. +2 −1 cucumber.yml
  2. +2 −0 script/ci.sh
View
@@ -1,8 +1,9 @@
<%
base_opts = '--require features/step_definitions --require features/support'
std_opts = "--format progress --strict"
+std_opts << " --backtrace" if ENV["CI"]
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
-rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
+rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format pretty #{rerun}"
exclusions = []
exclusions << "--tags ~@exclude-#{RUBY_VERSION.split('.').first(2).join}"
View
@@ -27,6 +27,8 @@ export JRUBY_OPTS='-X-C' # disable JIT since these processes are so short lived
# idea taken from https://github.com/jruby/jruby/wiki/Improving-startup-time
export JAVA_OPTS='-client -XX:+TieredCompilation -XX:TieredStopAtLevel=1'
+export SPEC_OPTS="--backtrace"
+
echo "-------- Running Typhoeus 0.4 Specs ---------"
BUNDLE_GEMFILE=gemfiles/typhoeus_old.gemfile run rspec spec/vcr/library_hooks/typhoeus_0.4_spec.rb

0 comments on commit 35da1bb

Please sign in to comment.