Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
60b67d76
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,体验更适合开发者的 AI 搜索 >>
提交
60b67d76
编写于
8月 06, 2016
作者:
X
Xavier Noria
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modernizes hash syntax in the rest of the project
上级
1607ee29
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
16 deletion
+16
-16
Rakefile
Rakefile
+6
-6
ci/travis.rb
ci/travis.rb
+1
-1
tasks/release.rb
tasks/release.rb
+9
-9
未找到文件。
Rakefile
浏览文件 @
60b67d76
...
@@ -5,16 +5,16 @@ require "tasks/release"
...
@@ -5,16 +5,16 @@ require "tasks/release"
require
"railties/lib/rails/api/task"
require
"railties/lib/rails/api/task"
desc
"Build gem files for all projects"
desc
"Build gem files for all projects"
task
:build
=>
"all:build"
task
build:
"all:build"
desc
"Prepare the release"
desc
"Prepare the release"
task
:prep_release
=>
"all:prep_release"
task
prep_release:
"all:prep_release"
desc
"Release all gems to rubygems and create a tag"
desc
"Release all gems to rubygems and create a tag"
task
:release
=>
"all:release"
task
release:
"all:release"
desc
"Run all tests by default"
desc
"Run all tests by default"
task
:default
=>
%w(test test:isolated)
task
default:
%w(test test:isolated)
%w(test test:isolated package gem)
.
each
do
|
task_name
|
%w(test test:isolated package gem)
.
each
do
|
task_name
|
desc
"Run
#{
task_name
}
task for all projects"
desc
"Run
#{
task_name
}
task for all projects"
...
@@ -40,7 +40,7 @@ task :smoke do
...
@@ -40,7 +40,7 @@ task :smoke do
end
end
desc
"Install gems for all projects."
desc
"Install gems for all projects."
task
:install
=>
"all:install"
task
install:
"all:install"
desc
"Generate documentation for the Rails framework"
desc
"Generate documentation for the Rails framework"
if
ENV
[
"EDGE"
]
if
ENV
[
"EDGE"
]
...
@@ -50,7 +50,7 @@ else
...
@@ -50,7 +50,7 @@ else
end
end
desc
"Bump all versions to match RAILS_VERSION"
desc
"Bump all versions to match RAILS_VERSION"
task
:update_versions
=>
"all:update_versions"
task
update_versions:
"all:update_versions"
# We have a webhook configured in GitHub that gets invoked after pushes.
# We have a webhook configured in GitHub that gets invoked after pushes.
# This hook triggers the following tasks:
# This hook triggers the following tasks:
...
...
ci/travis.rb
浏览文件 @
60b67d76
...
@@ -152,7 +152,7 @@ def run_bug_report_templates
...
@@ -152,7 +152,7 @@ def run_bug_report_templates
next
if
gem
==
"aj:integration"
&&
isolated
next
if
gem
==
"aj:integration"
&&
isolated
next
if
gem
==
"guides"
&&
isolated
next
if
gem
==
"guides"
&&
isolated
build
=
Build
.
new
(
gem
,
:isolated
=>
isolated
)
build
=
Build
.
new
(
gem
,
isolated:
isolated
)
results
[
build
.
key
]
=
build
.
run!
results
[
build
.
key
]
=
build
.
run!
end
end
...
...
tasks/release.rb
浏览文件 @
60b67d76
...
@@ -53,12 +53,12 @@
...
@@ -53,12 +53,12 @@
sh
cmd
sh
cmd
end
end
task
:build
=>
[
:clean
,
gem
]
task
build:
[
:clean
,
gem
]
task
:install
=>
:build
do
task
install:
:build
do
sh
"gem install --pre
#{
gem
}
"
sh
"gem install --pre
#{
gem
}
"
end
end
task
:push
=>
:build
do
task
push:
:build
do
sh
"gem push
#{
gem
}
"
sh
"gem push
#{
gem
}
"
# When running the release task we usually run build first to check that the gem works properly.
# When running the release task we usually run build first to check that the gem works properly.
...
@@ -137,10 +137,10 @@
...
@@ -137,10 +137,10 @@
end
end
namespace
:all
do
namespace
:all
do
task
:build
=>
FRAMEWORKS
.
map
{
|
f
|
"
#{
f
}
:build"
}
+
[
"rails:build"
]
task
build:
FRAMEWORKS
.
map
{
|
f
|
"
#{
f
}
:build"
}
+
[
"rails:build"
]
task
:update_versions
=>
FRAMEWORKS
.
map
{
|
f
|
"
#{
f
}
:update_versions"
}
+
[
"rails:update_versions"
]
task
update_versions:
FRAMEWORKS
.
map
{
|
f
|
"
#{
f
}
:update_versions"
}
+
[
"rails:update_versions"
]
task
:install
=>
FRAMEWORKS
.
map
{
|
f
|
"
#{
f
}
:install"
}
+
[
"rails:install"
]
task
install:
FRAMEWORKS
.
map
{
|
f
|
"
#{
f
}
:install"
}
+
[
"rails:install"
]
task
:push
=>
FRAMEWORKS
.
map
{
|
f
|
"
#{
f
}
:push"
}
+
[
"rails:push"
]
task
push:
FRAMEWORKS
.
map
{
|
f
|
"
#{
f
}
:push"
}
+
[
"rails:push"
]
task
:ensure_clean_state
do
task
:ensure_clean_state
do
unless
`git status -s | grep -v 'RAILS_VERSION
\\
|CHANGELOG
\\
|Gemfile.lock'`
.
strip
.
empty?
unless
`git status -s | grep -v 'RAILS_VERSION
\\
|CHANGELOG
\\
|Gemfile.lock'`
.
strip
.
empty?
...
@@ -173,7 +173,7 @@
...
@@ -173,7 +173,7 @@
sh
"git push --tags"
sh
"git push --tags"
end
end
task
:prep_release
=>
%w(ensure_clean_state build)
task
prep_release:
%w(ensure_clean_state build)
task
:release
=>
%w(ensure_clean_state build bundle commit tag push)
task
release:
%w(ensure_clean_state build bundle commit tag push)
end
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录