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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
201ce2cb
Commit
201ce2cb
authored
Aug 04, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unset the RUBYOPT env variable before installing gitaly-ruby
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
805a28e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
lib/tasks/gitlab/gitaly.rake
lib/tasks/gitlab/gitaly.rake
+1
-1
spec/support/test_env.rb
spec/support/test_env.rb
+9
-4
spec/tasks/gitlab/gitaly_rake_spec.rb
spec/tasks/gitlab/gitaly_rake_spec.rb
+1
-1
No files found.
lib/tasks/gitlab/gitaly.rake
View file @
201ce2cb
...
...
@@ -21,7 +21,7 @@ namespace :gitlab do
create_gitaly_configuration
# In CI we run scripts/gitaly-test-build instead of this command
unless
ENV
[
'CI'
].
present?
Bundler
.
with_original_env
{
run_command!
(
%w[/usr/bin/env -u BUNDLE_GEMFILE]
+
[
command
])
}
Bundler
.
with_original_env
{
run_command!
(
%w[/usr/bin/env -u BUNDLE_GEMFILE
-u RUBYOPT
]
+
[
command
])
}
end
end
end
...
...
spec/support/test_env.rb
View file @
201ce2cb
...
...
@@ -122,11 +122,14 @@ module TestEnv
end
def
setup_gitlab_shell
shell_needs_update
=
component_needs_update?
(
Gitlab
.
config
.
gitlab_shell
.
path
,
gitlab_shell_dir
=
File
.
dirname
(
Gitlab
.
config
.
gitlab_shell
.
path
)
shell_needs_update
=
component_needs_update?
(
gitlab_shell_dir
,
Gitlab
::
Shell
.
version_required
)
unless
!
shell_needs_update
||
system
(
'rake'
,
'gitlab:shell:install'
)
raise
'Can`t clone gitlab-shell'
puts
"rm -rf
#{
gitlab_shell_dir
}
"
FileUtils
.
rm_rf
(
gitlab_shell_dir
)
raise
"Can't install gitlab-shell"
end
end
...
...
@@ -136,14 +139,16 @@ module TestEnv
if
gitaly_dir_stale?
(
gitaly_dir
)
puts
"rm -rf
#{
gitaly_dir
}
"
FileUtils
.
rm_rf
(
gitaly_dir
)
FileUtils
.
rm_rf
(
gitaly_dir
)
end
gitaly_needs_update
=
component_needs_update?
(
gitaly_dir
,
Gitlab
::
GitalyClient
.
expected_server_version
)
unless
!
gitaly_needs_update
||
system
(
'rake'
,
"gitlab:gitaly:install[
#{
gitaly_dir
}
]"
)
raise
"Can't clone gitaly"
puts
"rm -rf
#{
gitaly_dir
}
"
FileUtils
.
rm_rf
(
gitaly_dir
)
raise
"Can't install gitaly"
end
start_gitaly
(
gitaly_dir
)
...
...
spec/tasks/gitlab/gitaly_rake_spec.rb
View file @
201ce2cb
...
...
@@ -41,7 +41,7 @@ describe 'gitlab:gitaly namespace rake task' do
end
describe
'gmake/make'
do
let
(
:command_preamble
)
{
%w[/usr/bin/env -u BUNDLE_GEMFILE]
}
let
(
:command_preamble
)
{
%w[/usr/bin/env -u BUNDLE_GEMFILE
-u RUBYOPT
]
}
before
(
:all
)
do
@old_env_ci
=
ENV
.
delete
(
'CI'
)
...
...
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