File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 4848 ruby-version : ${{ matrix.ruby }}
4949 - run : script/update_rubygems_and_install_bundler
5050 - run : bundle install --binstubs
51- - run : bundle exec rspec
51+ - run : script/run_build
5252 continue-on-error : ${{ matrix.allow_failure || false }}
5353
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e -x
4+
5+ # idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
6+ export JRUBY_OPTS=' -X-C' # disable JIT since these processes are so short lived
7+
8+ # force jRuby to use client mode JVM or a compilation mode thats as close as possible,
9+ # idea taken from https://github.com/jruby/jruby/wiki/Improving-startup-time
10+ export JAVA_OPTS=' -client -XX:+TieredCompilation -XX:TieredStopAtLevel=1'
11+
12+ echo " Running rspec specs"
13+ bin/rspec spec --format progress --profile
14+
15+ echo " Running cucumber specs"
16+ # TODO: it would be nice to figure out how to run the cukes w/o the overhead of
17+ # bundler, but just running `bin/cucumber` can fail due to the fact that it
18+ # shells out (via aruba) and executes `rspec`--which can pick up the wrong
19+ # rspec version if we're not running with bundler.
20+ bundle exec cucumber
You can’t perform that action at this time.
0 commit comments