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
20cf9b12
Commit
20cf9b12
authored
Jun 17, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
150d99c9
e6059b3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
15 deletions
+4
-15
scripts/gitaly_test.rb
scripts/gitaly_test.rb
+4
-1
spec/support/helpers/test_env.rb
spec/support/helpers/test_env.rb
+0
-14
No files found.
scripts/gitaly_test.rb
View file @
20cf9b12
...
...
@@ -23,7 +23,10 @@ module GitalyTest
'BUNDLE_FLAGS'
=>
"--jobs=4 --retry=3"
,
'BUNDLE_INSTALL_FLAGS'
=>
nil
,
'BUNDLE_GEMFILE'
=>
gemfile
,
'RUBYOPT'
=>
nil
'RUBYOPT'
=>
nil
,
# Git hooks can't run during tests as the internal API is not running.
'GITALY_TESTING_NO_GIT_HOOKS'
=>
"1"
}
if
ENV
[
'CI'
]
...
...
spec/support/helpers/test_env.rb
View file @
20cf9b12
...
...
@@ -146,19 +146,6 @@ module TestEnv
install_dir:
Gitlab
.
config
.
gitlab_shell
.
path
,
version:
Gitlab
::
Shell
.
version_required
,
task:
'gitlab:shell:install'
)
# gitlab-shell hooks don't work in our test environment because they try to make internal API calls
sabotage_gitlab_shell_hooks
end
def
sabotage_gitlab_shell_hooks
create_fake_git_hooks
(
Gitlab
::
Shell
.
new
.
hooks_path
)
end
def
create_fake_git_hooks
(
hooks_dir
)
%w[pre-receive post-receive update]
.
each
do
|
hook
|
File
.
open
(
File
.
join
(
hooks_dir
,
hook
),
'w'
,
0755
)
{
|
f
|
f
.
puts
'#!/bin/sh'
}
end
end
def
setup_gitaly
...
...
@@ -172,7 +159,6 @@ module TestEnv
task:
"gitlab:gitaly:install[
#{
install_gitaly_args
}
]"
)
do
Gitlab
::
SetupHelper
.
create_gitaly_configuration
(
gitaly_dir
,
{
'default'
=>
repos_path
},
force:
true
)
create_fake_git_hooks
(
File
.
join
(
gitaly_dir
,
'ruby/git-hooks'
))
start_gitaly
(
gitaly_dir
)
end
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