From fac8bb6e7afc16feb63a2feb4b27f5dc1a9edfd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Fri, 30 Aug 2024 13:19:53 +0200 Subject: [PATCH] Fixed failing integration test in CI The augeas Ruby gem 0.5.0 from rubygems.org is not compatible with Ruby 3.3 but the preinstalled RPM package is patched in OBS. Confugure the bundler to use the system gems. --- setup-services.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup-services.sh b/setup-services.sh index 661fc5defc..5e3f82e8e1 100755 --- a/setup-services.sh +++ b/setup-services.sh @@ -116,7 +116,13 @@ fi sed -e '/gemspec/a gem "ruby-dbus", path: "/checkout-ruby-dbus"' -i Gemfile fi - bundle config set --local path 'vendor/bundle' + if [ -n "$CI" ]; then + # in CI reuse the pre-installed system gems from RPMs + bundle config set --local disable_shared_gems 0 + else + bundle config set --local path 'vendor/bundle' + fi + bundle install )