This repository was archived by the owner on Nov 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
function run_cukes {
2
2
if [ -d features ]; then
3
- echo " ${PWD} /bin/cucumber"
3
+ if is_ruby_25_plus; then
4
+ echo " ${PWD} /bin/cucumber"
4
5
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
14
17
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"
20
19
fi
21
20
fi
22
21
}
You can’t perform that action at this time.
0 commit comments