Recent changes to RVM have introduced a non-zero exit in the source
command that makes functions available. This causes our jobs to fail,
since we run with fail-on-errors. Turn off fail-on-errors during that
step and enable right after.
Change-Id: Idd5f550639c714219d51395113f2089bc07682a2
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
# Expected by RVM, seems required to make RVM functions (`rvm use`) available
# Silence absurdly verbose rvm output by temporally not echoing commands
set +x
+# Source line has a non-zero exit somewhere, that RVM doesn't mean to indicate
+# a real failure, but causes our jobs to fail when fail-on-errors is enabled.
+set +e
# shellcheck disable=SC1090
source "$HOME/.rvm/scripts/rvm"
+set -e
rvm install 2.4.0
set -x
ruby --version