Commit 06c27dbf authored by Stan Hu's avatar Stan Hu

Exclude development gems from CI builds

We don't need these for tests, and excluding better_errors and
binding_of_caller from the list might get rid of the mysterious seg
faults.

rblineprof is used by `spec/lib/gitlab/sherlock/line_profiler_spec.rb`,
so we need to keep it for testing.

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/11951
parent 7ff33777
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
.rails-cache: .rails-cache:
cache: cache:
key: "rails-v1" key: "rails-v2"
paths: paths:
- vendor/ruby/ - vendor/ruby/
- vendor/gitaly-ruby/ - vendor/gitaly-ruby/
......
...@@ -337,7 +337,6 @@ group :development do ...@@ -337,7 +337,6 @@ group :development do
gem 'danger', '~> 6.0', require: false gem 'danger', '~> 6.0', require: false
gem 'letter_opener_web', '~> 1.3.4' gem 'letter_opener_web', '~> 1.3.4'
gem 'rblineprof', '~> 0.3.6', platform: :mri, require: false
# Better errors handler # Better errors handler
gem 'better_errors', '~> 2.5.0' gem 'better_errors', '~> 2.5.0'
...@@ -390,6 +389,8 @@ group :development, :test do ...@@ -390,6 +389,8 @@ group :development, :test do
gem 'png_quantizator', '~> 0.2.1', require: false gem 'png_quantizator', '~> 0.2.1', require: false
gem 'parallel', '~> 1.19', require: false gem 'parallel', '~> 1.19', require: false
gem 'rblineprof', '~> 0.3.6', platform: :mri, require: false
end end
# Gems required in omnibus-gitlab pipeline # Gems required in omnibus-gitlab pipeline
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
export SETUP_DB=${SETUP_DB:-true} export SETUP_DB=${SETUP_DB:-true}
export USE_BUNDLE_INSTALL=${USE_BUNDLE_INSTALL:-true} export USE_BUNDLE_INSTALL=${USE_BUNDLE_INSTALL:-true}
export BUNDLE_INSTALL_FLAGS="--without=production --jobs=$(nproc) --path=vendor --retry=3 --quiet" export BUNDLE_INSTALL_FLAGS="--without=production --without=development --jobs=$(nproc) --path=vendor --retry=3 --quiet"
if [ "$USE_BUNDLE_INSTALL" != "false" ]; then if [ "$USE_BUNDLE_INSTALL" != "false" ]; then
bundle --version bundle --version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment