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 )