Allow to pass parameters to Cucumber in Docker.

Also add some comments.
This commit is contained in:
Raphael Reitzig 2020-05-26 16:35:31 +02:00
parent 2afb22f6af
commit 15997dcba8
3 changed files with 40 additions and 6 deletions

View file

@ -7,6 +7,15 @@ Given(/^SDKMAN! candidate list is up to date$/) do
end
Given(/^candidate (\w+) is installed at version (\d+(?:\.\d+)*)$/) do |candidate, version|
# TODO: Can we mock-install instead?
# Something like
#
# mkdir -p ${SDKMAN_CANDIDATES_DIR}/${candidate}/{version}/bin \
# && touch ${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}/bin/${candidate} &&
# ln -s ${SDKMAN_CANDIDATES_DIR}/${candidate}/current ${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}
#
# should be quite enough to trick sdk as far as we need it to trick.
# Or is it?
run_bash_command("sdk install #{candidate} #{version}") unless installed?(candidate, version)
end