Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
eb460725
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
eb460725
编写于
6月 05, 2015
作者:
R
Rafael Mendonça França
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #20452 from repinel/add-bug-report-templates-to-ci
Add the bug report templates to the Travis CI build
上级
91ed7780
89550bc1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
49 addition
and
17 deletion
+49
-17
.travis.yml
.travis.yml
+1
-0
ci/travis.rb
ci/travis.rb
+24
-8
guides/bug_report_templates/action_controller_gem.rb
guides/bug_report_templates/action_controller_gem.rb
+7
-3
guides/bug_report_templates/action_controller_master.rb
guides/bug_report_templates/action_controller_master.rb
+0
-1
guides/bug_report_templates/active_record_gem.rb
guides/bug_report_templates/active_record_gem.rb
+9
-2
guides/bug_report_templates/generic_gem.rb
guides/bug_report_templates/generic_gem.rb
+8
-3
未找到文件。
.travis.yml
浏览文件 @
eb460725
...
...
@@ -19,6 +19,7 @@ env:
-
"
GEM=ar:sqlite3"
-
"
GEM=ar:postgresql"
-
"
GEM=aj:integration"
-
"
GEM=guides"
rvm
:
-
2.2.2
-
ruby-head
...
...
ci/travis.rb
浏览文件 @
eb460725
...
...
@@ -16,13 +16,14 @@
class
Build
MAP
=
{
'railties'
=>
'railties'
,
'ap'
=>
'actionpack'
,
'am'
=>
'actionmailer'
,
'amo'
=>
'activemodel'
,
'as'
=>
'activesupport'
,
'ar'
=>
'activerecord'
,
'av'
=>
'actionview'
,
'aj'
=>
'activejob'
'ap'
=>
'actionpack'
,
'am'
=>
'actionmailer'
,
'amo'
=>
'activemodel'
,
'as'
=>
'activesupport'
,
'ar'
=>
'activerecord'
,
'av'
=>
'actionview'
,
'aj'
=>
'activejob'
,
'guides'
=>
'guides'
}
attr_reader
:component
,
:options
...
...
@@ -36,7 +37,11 @@ def run!(options = {})
self
.
options
.
update
(
options
)
Dir
.
chdir
(
dir
)
do
announce
(
heading
)
rake
(
*
tasks
)
if
guides?
run_bug_report_templates
else
rake
(
*
tasks
)
end
end
end
...
...
@@ -71,6 +76,10 @@ def activerecord?
gem
==
'activerecord'
end
def
guides?
gem
==
'guides'
end
def
isolated?
options
[
:isolated
]
end
...
...
@@ -96,6 +105,12 @@ def rake(*tasks)
end
true
end
def
run_bug_report_templates
Dir
.
glob
(
'bug_report_templates/*.rb'
).
all?
do
|
file
|
system
(
Gem
.
ruby
,
'-w'
,
file
)
end
end
end
if
ENV
[
'GEM'
]
==
'aj:integration'
...
...
@@ -110,6 +125,7 @@ def rake(*tasks)
next
if
ENV
[
'TRAVIS_PULL_REQUEST'
]
&&
ENV
[
'TRAVIS_PULL_REQUEST'
]
!=
'false'
&&
isolated
next
if
gem
==
'railties'
&&
isolated
next
if
gem
==
'aj:integration'
&&
isolated
next
if
gem
==
'guides'
&&
isolated
build
=
Build
.
new
(
gem
,
:isolated
=>
isolated
)
results
[
build
.
key
]
=
build
.
run!
...
...
guides/bug_report_templates/action_controller_gem.rb
浏览文件 @
eb460725
# Activate the gem you are reporting the issue against.
gem
'rails'
,
'4.2.0'
require
'bundler/inline'
gemfile
(
true
)
do
source
'https://rubygems.org'
# Activate the gem you are reporting the issue against.
gem
'rails'
,
'4.2.0'
end
require
'rails'
require
'rack/test'
require
'action_controller/railtie'
...
...
guides/bug_report_templates/action_controller_master.rb
浏览文件 @
eb460725
...
...
@@ -6,7 +6,6 @@
gem
'arel'
,
github:
'rails/arel'
end
require
'rails'
require
'action_controller/railtie'
class
TestApp
<
Rails
::
Application
...
...
guides/bug_report_templates/active_record_gem.rb
浏览文件 @
eb460725
# Activate the gem you are reporting the issue against.
gem
'activerecord'
,
'4.2.0'
require
'bundler/inline'
gemfile
(
true
)
do
source
'https://rubygems.org'
# Activate the gem you are reporting the issue against.
gem
'activerecord'
,
'4.2.0'
gem
'sqlite3'
end
require
'active_record'
require
'minitest/autorun'
require
'logger'
...
...
guides/bug_report_templates/generic_gem.rb
浏览文件 @
eb460725
# Activate the gems you are reporting the issue against.
gem
'activesupport'
,
'4.2.0'
require
'active_support'
require
'bundler/inline'
gemfile
(
true
)
do
source
'https://rubygems.org'
# Activate the gem you are reporting the issue against.
gem
'activesupport'
,
'4.2.0'
end
require
'active_support/core_ext/object/blank'
require
'minitest/autorun'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录