Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c485b9f1
Commit
c485b9f1
authored
Sep 02, 2021
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we respect bundler config for Gemfile
parent
6f664eae
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
9 deletions
+22
-9
bin/bundle
bin/bundle
+6
-1
bin/rspec
bin/rspec
+1
-1
bin/rspec-stackprof
bin/rspec-stackprof
+1
-1
config/boot.rb
config/boot.rb
+4
-1
config/bundler_setup.rb
config/bundler_setup.rb
+5
-0
ee/bin/geo_log_cursor
ee/bin/geo_log_cursor
+1
-2
qa/Dockerfile
qa/Dockerfile
+1
-0
qa/qa.rb
qa/qa.rb
+1
-1
scripts/setup-test-env
scripts/setup-test-env
+1
-1
spec/fast_spec_helper.rb
spec/fast_spec_helper.rb
+1
-1
No files found.
bin/bundle
View file @
c485b9f1
#!/usr/bin/env ruby
ENV
[
'BUNDLE_GEMFILE'
]
||=
File
.
expand_path
(
'../Gemfile'
,
__dir__
)
require
'bundler'
ENV
[
'BUNDLE_GEMFILE'
]
||=
Bundler
.
settings
[
:gemfile
]
||
File
.
expand_path
(
'../Gemfile'
,
__dir__
)
load
Gem
.
bin_path
(
'bundler'
,
'bundle'
)
bin/rspec
View file @
c485b9f1
...
...
@@ -5,5 +5,5 @@ begin
rescue
LoadError
=>
e
raise
unless
e
.
message
.
include?
(
'spring'
)
end
require
'bundler/
setup'
require
_relative
'../config/bundler_
setup'
load
Gem
.
bin_path
(
'rspec-core'
,
'rspec'
)
bin/rspec-stackprof
View file @
c485b9f1
#!/usr/bin/env ruby
require
'bundler/
setup'
require
_relative
'../config/bundler_
setup'
require
'stackprof'
$:
.
unshift
'spec'
require
'spec_helper'
...
...
config/boot.rb
View file @
c485b9f1
# frozen_string_literal: true
ENV
[
'BUNDLE_GEMFILE'
]
||=
File
.
expand_path
(
'../Gemfile'
,
__dir__
)
require
'bundler'
ENV
[
'BUNDLE_GEMFILE'
]
||=
Bundler
.
settings
[
:gemfile
]
||
File
.
expand_path
(
'../Gemfile'
,
__dir__
)
# Set up gems listed in the Gemfile.
require
'bundler/setup'
if
File
.
exist?
(
ENV
[
'BUNDLE_GEMFILE'
])
...
...
config/bundler_setup.rb
0 → 100644
View file @
c485b9f1
# frozen_string_literal: true
require
'bundler'
ENV
[
'BUNDLE_GEMFILE'
]
||=
Bundler
.
settings
[
:gemfile
]
require
'bundler/setup'
ee/bin/geo_log_cursor
View file @
c485b9f1
#!/usr/bin/env ruby
# frozen_string_literal: true
require
'rubygems'
require
'bundler/setup'
require_relative
'../../config/bundler_setup'
require
'optparse'
def
rails_path
(
relname
)
...
...
qa/Dockerfile
View file @
c485b9f1
...
...
@@ -76,6 +76,7 @@ COPY ./config/initializers/0_inject_enterprise_edition_module.rb /home/gitlab/co
# Copy VERSION to ensure the COPY succeeds to copy at least one file since ee/app/models/license.rb isn't present in FOSS
# The [b] part makes ./ee/app/models/license.r[b] a pattern that is allowed to return no files (which is the case in FOSS)
COPY
VERSION ./ee/app/models/license.r[b] /home/gitlab/ee/app/models/
COPY
./config/bundler_setup.rb /home/gitlab/config/
COPY
./lib/gitlab.rb /home/gitlab/lib/
COPY
./lib/gitlab/utils.rb /home/gitlab/lib/gitlab/
COPY
./INSTALLATION_TYPE ./VERSION /home/gitlab/
...
...
qa/qa.rb
View file @
c485b9f1
...
...
@@ -8,7 +8,7 @@ require_relative '../config/initializers/0_inject_enterprise_edition_module'
require_relative
'lib/gitlab'
require
'bundler/
setup'
require
_relative
'../config/bundler_
setup'
Bundler
.
require
(
:default
)
module
QA
...
...
scripts/setup-test-env
View file @
c485b9f1
...
...
@@ -2,7 +2,7 @@
# frozen_string_literal: true
require
'bundler/
setup'
require
_relative
'../config/bundler_
setup'
require
'request_store'
require
'rake'
...
...
spec/fast_spec_helper.rb
View file @
c485b9f1
...
...
@@ -7,7 +7,7 @@ if $".include?(File.expand_path('spec_helper.rb', __dir__))
return
end
require
'bundler/
setup'
require
_relative
'../config/bundler_
setup'
ENV
[
'GITLAB_ENV'
]
=
'test'
ENV
[
'IN_MEMORY_APPLICATION_SETTINGS'
]
=
'true'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment