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
6dd89059
Commit
6dd89059
authored
Nov 21, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gitaly-test-no-deployment' into 'master'
Fix slow gitaly dev test bundle See merge request gitlab-org/gitlab-ce!15508
parents
15cb13ee
6f1e9f7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
gitaly.rake
lib/tasks/gitlab/gitaly.rake
+1
-3
gitaly_rake_spec.rb
spec/tasks/gitlab/gitaly_rake_spec.rb
+2
-2
No files found.
lib/tasks/gitlab/gitaly.rake
View file @
6dd89059
...
...
@@ -17,9 +17,7 @@ namespace :gitlab do
_
,
status
=
Gitlab
::
Popen
.
popen
(
%w[which gmake]
)
command
=
status
.
zero?
?
[
'gmake'
]
:
[
'make'
]
if
Rails
.
env
.
test?
command
+=
%W[BUNDLE_PATH=
#{
Bundler
.
bundle_path
}
]
end
command
<<
'BUNDLE_FLAGS=--no-deployment'
if
Rails
.
env
.
test?
Dir
.
chdir
(
args
.
dir
)
do
create_gitaly_configuration
...
...
spec/tasks/gitlab/gitaly_rake_spec.rb
View file @
6dd89059
...
...
@@ -57,7 +57,7 @@ describe 'gitlab:gitaly namespace rake task' do
it
'calls gmake in the gitaly directory'
do
expect
(
Gitlab
::
Popen
).
to
receive
(
:popen
).
with
(
%w[which gmake]
).
and_return
([
'/usr/bin/gmake'
,
0
])
expect
(
main_object
).
to
receive
(
:run_command!
).
with
(
command_preamble
+
%w[gmake BUNDLE_
PATH=/fake/bundle_path
]
).
and_return
(
true
)
expect
(
main_object
).
to
receive
(
:run_command!
).
with
(
command_preamble
+
%w[gmake BUNDLE_
FLAGS=--no-deployment
]
).
and_return
(
true
)
run_rake_task
(
'gitlab:gitaly:install'
,
clone_path
)
end
...
...
@@ -70,7 +70,7 @@ describe 'gitlab:gitaly namespace rake task' do
end
it
'calls make in the gitaly directory'
do
expect
(
main_object
).
to
receive
(
:run_command!
).
with
(
command_preamble
+
%w[make BUNDLE_
PATH=/fake/bundle_path
]
).
and_return
(
true
)
expect
(
main_object
).
to
receive
(
:run_command!
).
with
(
command_preamble
+
%w[make BUNDLE_
FLAGS=--no-deployment
]
).
and_return
(
true
)
run_rake_task
(
'gitlab:gitaly:install'
,
clone_path
)
end
...
...
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