Skip to content

Commit 6f7af28

Browse files
committed
Run cucumber
1 parent 5c7174c commit 6f7af28

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ jobs:
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

script/run_build

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)