Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit de96ed9

Browse files
committed
Update run_cukes overloading
1 parent 49340d7 commit de96ed9

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

script/custom_build_functions.sh

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
function run_cukes {
22
if [ -d features ]; then
3-
echo "${PWD}/bin/cucumber"
3+
if is_ruby_25_plus; then
4+
echo "${PWD}/bin/cucumber"
45

5-
if is_mri_192; then
6-
# For some reason we get SystemStackError on 1.9.2 when using
7-
# the bin/cucumber approach below. That approach is faster
8-
# (as it avoids the bundler tax), so we use it on rubies where we can.
9-
bundle exec cucumber --strict
10-
elif is_jruby; then
11-
echo "WARNING: Cucumber is skipped on JRuby on rspec-core due to" \
12-
"excessive build times (>45 minutes) causing timeouts on Travis"
13-
return 0
6+
if is_jruby; then
7+
echo "WARNING: Cucumber is skipped on JRuby on rspec-core due to" \
8+
"excessive build times (>45 minutes) causing timeouts on Travis"
9+
return 0
10+
else
11+
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
12+
# and PATH for those that are using `rspec` or `rake`.
13+
RUBYOPT="${RUBYOPT} -I${PWD}/../bundle -rbundler/setup" \
14+
PATH="${PWD}/bin:$PATH" \
15+
bin/cucumber --strict
16+
fi
1417
else
15-
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
16-
# and PATH for those that are using `rspec` or `rake`.
17-
RUBYOPT="${RUBYOPT} -I${PWD}/../bundle -rbundler/setup" \
18-
PATH="${PWD}/bin:$PATH" \
19-
bin/cucumber --strict
18+
echo "skipping features"
2019
fi
2120
fi
2221
}

0 commit comments

Comments
 (0)