Skip to content

Commit

Permalink
EXPERIMENT: Run cucumber on JRuby
Browse files Browse the repository at this point in the history
In hopes it doesn't take 45+ minutes anymore
  • Loading branch information
pirj committed Nov 26, 2020
1 parent 5ffd076 commit 0373f4c
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions script/custom_build_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@ function run_cukes {
if [ -d features ]; then
echo "${PWD}/bin/cucumber"

if is_jruby; then
echo "WARNING: Cucumber is skipped on JRuby on rspec-core due to" \
"excessive build times (>45 minutes) causing timeouts on Travis"
return 0
else
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
# and PATH for those that are using `rspec` or `rake`.
RUBYOPT="${RUBYOPT} -I${PWD}/../bundle -rbundler/setup" \
PATH="${PWD}/bin:$PATH" \
bin/cucumber --strict
fi
# Prepare RUBYOPT for scenarios that are shelling out to ruby,
# and PATH for those that are using `rspec` or `rake`.
RUBYOPT="${RUBYOPT} -I${PWD}/../bundle -rbundler/setup" \
PATH="${PWD}/bin:$PATH" \
bin/cucumber --strict
fi
}

0 comments on commit 0373f4c

Please sign in to comment.