Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
a9cb1968
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 搜索 >>
提交
a9cb1968
编写于
7月 31, 2017
作者:
D
David Heinemeier Hansson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Setup travis to be able to run CI tests against S3
上级
ba12811d
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
33 addition
and
33 deletion
+33
-33
.travis.yml
.travis.yml
+2
-0
activestorage/test/service/.gitignore
activestorage/test/service/.gitignore
+0
-1
activestorage/test/service/configurations-example.yml
activestorage/test/service/configurations-example.yml
+0
-31
activestorage/test/service/configurations.yml
activestorage/test/service/configurations.yml
+30
-0
activestorage/test/test_helper.rb
activestorage/test/test_helper.rb
+1
-1
未找到文件。
.travis.yml
浏览文件 @
a9cb1968
...
...
@@ -40,6 +40,8 @@ script: 'ci/travis.rb'
env
:
global
:
-
"
JRUBY_OPTS='--dev
-J-Xmx1024M'"
-
"
AWS_ACCESS_KEY_ID=AKIAIDIA2E7SSMYGNB7A"
-
secure
:
"
XohvFnYff1yf8qlawCujI+CIqHK08KOw34pPprd4QYuG0SJCzBdNN7efBBj5gLX1PI6DwkDLNv51Oi31xPh7yJFuzRAkB0FPdyKM7UyYZ7BMaTqx8LVC89lZJ8VIu19kDP/8sdOm0HN/huOM5kO3jZJFLpi2Tj313TjmzWZFPq0="
matrix
:
-
"
GEM=railties"
-
"
GEM=ap,ac"
...
...
activestorage/test/service/.gitignore
已删除
100644 → 0
浏览文件 @
ba12811d
configurations.yml
activestorage/test/service/configurations-example.yml
已删除
100644 → 0
浏览文件 @
ba12811d
# Copy this file to configurations.yml and edit the credentials to match your IAM test account and bucket
s3
:
service
:
S3
access_key_id
:
secret_access_key
:
region
:
bucket
:
gcs
:
service
:
GCS
keyfile
:
{
type
:
"
service_account"
,
project_id
:
"
"
,
private_key_id
:
"
"
,
private_key
:
"
"
,
client_email
:
"
"
,
client_id
:
"
"
,
auth_uri
:
"
https://accounts.google.com/o/oauth2/auth"
,
token_uri
:
"
https://accounts.google.com/o/oauth2/token"
,
auth_provider_x509_cert_url
:
"
https://www.googleapis.com/oauth2/v1/certs"
,
client_x509_cert_url
:
"
"
}
project
:
bucket
:
azure
:
service
:
Azure
path
:
"
"
storage_account_name
:
"
"
storage_access_key
:
"
"
container
:
"
"
activestorage/test/service/configurations.yml
0 → 100644
浏览文件 @
a9cb1968
s3
:
service
:
S3
access_key_id
:
<%= ENV["AWS_ACCESS_KEY_ID"] %>
secret_access_key
:
<%= ENV["AWS_SECRET_KEY"] %>
region
:
us-east-2
bucket
:
rails-ci-activestorage
# gcs:
# service: GCS
# keyfile: {
# type: "service_account",
# project_id: "",
# private_key_id: "",
# private_key: "",
# client_email: "",
# client_id: "",
# auth_uri: "https://accounts.google.com/o/oauth2/auth",
# token_uri: "https://accounts.google.com/o/oauth2/token",
# auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/v1/certs",
# client_x509_cert_url: ""
# }
# project:
# bucket:
#
# azure:
# service: Azure
# path: ""
# storage_account_name: ""
# storage_access_key: ""
# container: ""
activestorage/test/test_helper.rb
浏览文件 @
a9cb1968
...
...
@@ -14,7 +14,7 @@
require
"yaml"
SERVICE_CONFIGURATIONS
=
begin
YAML
.
load
_file
(
File
.
expand_path
(
"../service/configurations.yml"
,
__FILE__
)
).
deep_symbolize_keys
YAML
.
load
(
ERB
.
new
(
Pathname
.
new
(
File
.
expand_path
(
"../service/configurations.yml"
,
__FILE__
)).
read
).
result
).
deep_symbolize_keys
rescue
Errno
::
ENOENT
puts
"Missing service configuration file in test/service/configurations.yml"
{}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录