Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
b49dd2c5
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b49dd2c5
编写于
9月 27, 2014
作者:
C
Ciro Santilli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace testme with gitlab-test.
上级
fd338d67
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
6 deletion
+15
-6
db/fixtures/development/04_project.rb
db/fixtures/development/04_project.rb
+1
-1
spec/support/test_env.rb
spec/support/test_env.rb
+14
-5
未找到文件。
db/fixtures/development/04_project.rb
浏览文件 @
b49dd2c5
...
@@ -7,7 +7,7 @@ Sidekiq::Testing.inline! do
...
@@ -7,7 +7,7 @@ Sidekiq::Testing.inline! do
'https://gitlab.com/gitlab-org/gitlab-ce.git'
,
'https://gitlab.com/gitlab-org/gitlab-ce.git'
,
'https://gitlab.com/gitlab-org/gitlab-ci.git'
,
'https://gitlab.com/gitlab-org/gitlab-ci.git'
,
'https://gitlab.com/gitlab-org/gitlab-shell.git'
,
'https://gitlab.com/gitlab-org/gitlab-shell.git'
,
'https://gitlab.com/gitlab-org/
testme
.git'
,
'https://gitlab.com/gitlab-org/
gitlab-test
.git'
,
'https://github.com/twitter/flight.git'
,
'https://github.com/twitter/flight.git'
,
'https://github.com/twitter/typeahead.js.git'
,
'https://github.com/twitter/typeahead.js.git'
,
'https://github.com/h5bp/html5-boilerplate.git'
,
'https://github.com/h5bp/html5-boilerplate.git'
,
...
...
spec/support/test_env.rb
浏览文件 @
b49dd2c5
...
@@ -46,17 +46,16 @@ module TestEnv
...
@@ -46,17 +46,16 @@ module TestEnv
end
end
def
setup_factory_repo
def
setup_factory_repo
repo_path
=
repos_path
+
"/root/testme.git"
clone_url
=
"https://gitlab.com/gitlab-org/
#{
factory_repo_name
}
.git"
clone_url
=
'https://gitlab.com/gitlab-org/gitlab-test.git'
unless
File
.
directory?
(
repo_path
)
unless
File
.
directory?
(
factory_
repo_path
)
git_cmd
=
%W(git clone --bare
#{
clone_url
}
#{
repo_path
}
)
git_cmd
=
%W(git clone --bare
#{
clone_url
}
#{
factory_
repo_path
}
)
system
(
*
git_cmd
)
system
(
*
git_cmd
)
end
end
end
end
def
copy_repo
(
project
)
def
copy_repo
(
project
)
base_repo_path
=
File
.
expand_path
(
repos_path
+
"/root/testme.git"
)
base_repo_path
=
File
.
expand_path
(
factory_repo_path
)
target_repo_path
=
File
.
expand_path
(
repos_path
+
"/
#{
project
.
namespace
.
path
}
/
#{
project
.
path
}
.git"
)
target_repo_path
=
File
.
expand_path
(
repos_path
+
"/
#{
project
.
namespace
.
path
}
/
#{
project
.
path
}
.git"
)
FileUtils
.
mkdir_p
(
target_repo_path
)
FileUtils
.
mkdir_p
(
target_repo_path
)
FileUtils
.
cp_r
(
"
#{
base_repo_path
}
/."
,
target_repo_path
)
FileUtils
.
cp_r
(
"
#{
base_repo_path
}
/."
,
target_repo_path
)
...
@@ -66,4 +65,14 @@ module TestEnv
...
@@ -66,4 +65,14 @@ module TestEnv
def
repos_path
def
repos_path
Gitlab
.
config
.
gitlab_shell
.
repos_path
Gitlab
.
config
.
gitlab_shell
.
repos_path
end
end
private
def
factory_repo_path
@factory_repo_path
||=
repos_path
+
"/root/
#{
factory_repo_name
}
.git"
end
def
factory_repo_name
'gitlab-test'
end
end
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录