Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--scripts/prepare_build.sh11
2 files changed, 7 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c835fd3c49e..31c7193580e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,9 +34,9 @@ variables:
FLAKY_RSPEC_SUITE_REPORT_PATH: rspec_flaky/report-suite.json
before_script:
- - bundle --version
- source scripts/utils.sh
- source scripts/prepare_build.sh
+ - bundle --version
stages:
- build
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh
index dc8b301cfb4..54e6107700d 100644
--- a/scripts/prepare_build.sh
+++ b/scripts/prepare_build.sh
@@ -4,13 +4,14 @@ export SETUP_DB=${SETUP_DB:-true}
export CREATE_DB_USER=${CREATE_DB_USER:-$SETUP_DB}
export USE_BUNDLE_INSTALL=${USE_BUNDLE_INSTALL:-true}
export BUNDLE_INSTALL_FLAGS="--without=production --jobs=$(nproc) --path=vendor --retry=3 --quiet"
+export GEM_PATH=/usr/local/bundle
if [ "$USE_BUNDLE_INSTALL" != "false" ]; then
- # if there's a comma (,), then we have multiple bundlers
- if gem list -qe bundler | grep -q ,; then
- # Uninstall non-default bundler to make sure we're using the one
- gem uninstall -i /usr/local/lib/ruby/gems/2.3.0 bundler
- fi
+ # # if there's a comma (,), then we have multiple bundlers
+ # if gem list -qe bundler | grep -q ,; then
+ # # Uninstall non-default bundler to make sure we're using the one
+ # gem uninstall -i /usr/local/lib/ruby/gems/2.3.0 bundler
+ # fi
retry gem install bundler -v 1.13.7
bundle install --clean $BUNDLE_INSTALL_FLAGS && bundle check
fi