Commit d0d3d313 authored by Stan Hu's avatar Stan Hu

Fix cache gems CI step

The `cache gems` CI step attempts to package all gems in case they are
ever yanked. We need to include production, development, and test gems
to make this step useful.

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/229520
parent b7510d7a
...@@ -9,6 +9,7 @@ cache gems: ...@@ -9,6 +9,7 @@ cache gems:
stage: test stage: test
needs: ["setup-test-env"] needs: ["setup-test-env"]
variables: variables:
BUNDLE_INSTALL_FLAGS: --with=production --with=development --with=test --jobs=2 --path=vendor --retry=3 --quiet
SETUP_DB: "false" SETUP_DB: "false"
script: script:
- bundle package --all --all-platforms - bundle package --all --all-platforms
......
...@@ -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 --without=development --jobs=$(nproc) --path=vendor --retry=3 --quiet" export BUNDLE_INSTALL_FLAGS=${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