BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ac3d56e0
Commit
ac3d56e0
authored
Jan 24, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass BUNDLE_PATH to install to the same path for test
parent
4376be84
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
gitaly.rake
lib/tasks/gitlab/gitaly.rake
+5
-1
gitaly_rake_spec.rb
spec/tasks/gitlab/gitaly_rake_spec.rb
+5
-1
No files found.
lib/tasks/gitlab/gitaly.rake
View file @
ac3d56e0
...
...
@@ -21,7 +21,11 @@ namespace :gitlab do
_
,
status
=
Gitlab
::
Popen
.
popen
(
%w[which gmake]
)
command
<<
(
status
.
zero?
?
'gmake'
:
'make'
)
command
<<
'BUNDLE_FLAGS=--no-deployment'
if
Rails
.
env
.
test?
if
Rails
.
env
.
test?
command
.
push
(
'BUNDLE_FLAGS=--no-deployment'
,
"BUNDLE_PATH=
#{
Bundler
.
bundle_path
}
"
)
end
Gitlab
::
SetupHelper
.
create_gitaly_configuration
(
args
.
dir
)
Dir
.
chdir
(
args
.
dir
)
do
...
...
spec/tasks/gitlab/gitaly_rake_spec.rb
View file @
ac3d56e0
...
...
@@ -76,7 +76,11 @@ describe 'gitlab:gitaly namespace rake task' do
end
context
'when Rails.env is test'
do
let
(
:command
)
{
%w[make BUNDLE_FLAGS=--no-deployment]
}
let
(
:command
)
do
%W[make
BUNDLE_FLAGS=--no-deployment
BUNDLE_PATH=
#{
Bundler
.
bundle_path
}
]
end
before
do
allow
(
Rails
.
env
).
to
receive
(
:test?
).
and_return
(
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