Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
github
hub
提交
d1cb6d7d
H
hub
项目概览
github
/
hub
接近 1 年 前同步成功
通知
3
Star
22523
Fork
2406
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hub
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d1cb6d7d
编写于
8月 21, 2016
作者:
M
Mislav Marohnić
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Simplify Travis config and fix release process
上级
4151f884
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
13 deletion
+13
-13
.travis.yml
.travis.yml
+1
-7
script/bootstrap
script/bootstrap
+6
-3
script/cached-bundle
script/cached-bundle
+4
-2
script/publish-release
script/publish-release
+2
-1
未找到文件。
.travis.yml
浏览文件 @
d1cb6d7d
os
:
-
linux
-
osx
sudo
:
false
before_install
:
-
export BUNDLE_GEMFILE=$PWD/Gemfile
-
export TRAVIS_RUBY_VERSION="$(ruby -e 'puts RUBY_VERSION')-travis"
-
script/bootstrap
-
export PATH=~/bin:"$PATH"
language
:
go
go
:
-
1.6.3
script
:
make test-all
install
:
script/
cached-bundle install --without development --deployment --jobs=3 --retry=3
install
:
script/
bootstrap
after_success
:
script/publish-release
notifications
:
email
:
false
env
:
global
:
-
AMAZON_S3_BUCKET=ci-cache
...
...
script/bootstrap
浏览文件 @
d1cb6d7d
#!/usr/bin/env bash
set
-e
if
[
-n
"
$TRAVIS
"
]
;
then
if
[
-n
"
$TRAVIS
"
]
&&
[
!
-x
~/bin/tmux
]
;
then
case
"
$TRAVIS_OS_NAME
"
in
linux
)
cache_name
=
"tmux-zsh.ubuntu"
;;
osx
)
cache_name
=
"tmux.osx"
;;
...
...
@@ -12,7 +12,6 @@ if [ -n "$TRAVIS" ]; then
esac
curl
-fsSL
"https://
${
AMAZON_S3_BUCKET
}
.s3.amazonaws.com/
${
cache_name
}
.tgz"
|
tar
-xz
-C
~
exit
0
fi
STATUS
=
0
...
...
@@ -23,7 +22,11 @@ if ! go version; then
fi
{
ruby
--version
bundle
install
--path
vendor/bundle
if
[
-n
"
$TRAVIS
"
]
;
then
script/cached-bundle
install
--deployment
--jobs
=
3
--retry
=
3
else
bundle
install
--path
vendor/bundle
fi
bundle binstub cucumber ronn
--path
bin
}
||
{
echo
"You need Ruby 1.9 or higher and Bundler to run hub tests"
>
&2
...
...
script/cached-bundle
浏览文件 @
d1cb6d7d
...
...
@@ -31,15 +31,17 @@ bundle_path="vendor/bundle"
gemfile_hash
=
"
$(
compute_md5 <
"
${
BUNDLE_GEMFILE
:-
Gemfile
}
.lock"
)
"
cache_name
=
"
${
TRAVIS_RUBY_VERSION
}
-
${
gemfile_hash
}
.
${
TRAVIS_OS_NAME
}
.tgz"
fetch_url
=
"http://
${
AMAZON_S3_BUCKET
}
.s3.amazonaws.com/
${
TRAVIS_REPO_SLUG
}
/
${
cache_name
}
"
bundle_log
=
"
$(
mktemp
/tmp/bundle.XXXX
)
"
if
download
"
$fetch_url
"
"
$cache_name
"
;
then
echo
"Reusing cached bundle
${
cache_name
}
"
tar
xzf
"
$cache_name
"
fi
bundle
"
$@
"
set
-o
pipefail
bundle
"
$@
"
|
tee
"
$bundle_log
"
if
[
!
-f
"
$cache_name
"
]
&&
[
-n
"
$AMAZON_SECRET_ACCESS_KEY
"
]
;
then
if
grep
-q
'^Installing'
"
$bundle_log
"
&&
[
-n
"
$AMAZON_SECRET_ACCESS_KEY
"
]
;
then
echo
"Caching
\`
${
bundle_path
}
' to S3"
tar
czf
"
$cache_name
"
"
$bundle_path
"
script/s3-put
"
$cache_name
"
"
${
AMAZON_S3_BUCKET
}
:
${
TRAVIS_REPO_SLUG
}
/
${
cache_name
}
"
...
...
script/publish-release
浏览文件 @
d1cb6d7d
...
...
@@ -4,5 +4,6 @@ set -e
if
[[
$TRAVIS_TAG
==
v
*
]]
&&
[
"
$TRAVIS_OS_NAME
"
=
"linux"
]
&&
[
-n
"
$GITHUB_OAUTH
"
]
;
then
version
=
"
${
TRAVIS_TAG
#v
}
"
make man-pages
script/cross-compile
"
$version
"
| script/github-release hub
"
$version
"
script/cross-compile
"
$version
"
|
\
PATH
=
"bin:
$PATH
"
script/github-release hub
"
$version
"
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录