Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
36708cc0
Unverified
提交
36708cc0
authored
11月 29, 2016
作者:
Jakub Sztandera
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Run coveralls if COVERALLS_TOKEN is set
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
上级
ac16ac58
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
29 行增加
和
12 行删除
+29
-12
.gitignore
.gitignore
+1
-0
Makefile
Makefile
+26
-12
circle.yml
circle.yml
+2
-0
没有找到文件。
.gitignore
浏览文件 @
36708cc0
...
...
@@ -5,6 +5,7 @@
*.swp
.ipfsconfig
*.out
*.coverprofile
*.test
*.orig
*~
...
...
Makefile
浏览文件 @
36708cc0
...
...
@@ -3,10 +3,19 @@ IPFS_MIN_GO_VERSION = 1.7
IPFS_MIN_GX_VERSION
=
0.6
IPFS_MIN_GX_GO_VERSION
=
1.1
ifeq
($(TEST_NO_FUSE),1)
go_test
=
IPFS_REUSEPORT
=
false
go
test
-tags
nofuse
export
IPFS_REUSEPORT
=
false
ifneq
($(COVERALLS_TOKEN),
)
covertools_rule
=
covertools
GOT
=
overalls
-project
=
github.com/ipfs/go-ipfs
-covermode
atomic
-ignore
=
.git,Godeps,thirdparty,test
--
$(GOTFLAGS)
else
go_test
=
IPFS_REUSEPORT
=
false
go
test
covertools_rule
=
$
()
GOT
=
go
test
$(GOTFLAGS)
./...
endif
ifeq
($(TEST_NO_FUSE),1)
GOTFLAGS
+=
-tags
nofuse
endif
ifeq
($(OS),Windows_NT)
...
...
@@ -48,9 +57,14 @@ gx_check: ${gx_bin} ${gx-go_bin}
path_check
:
@
bin/check_go_path
$
(
realpath
$(
shell
pwd
)
)
$
(
realpath
$
(
addsuffix /src/github.com/ipfs/go-ipfs,
$
(
subst
$(GOPATH_DELIMITER)
, ,
$(GOPATH)
)))
deps
:
go_check gx_check path_check
deps
:
go_check gx_check path_check
$(covertools_rule)
${
gx_bin
}
--verbose
install
--global
covertools
:
go get
-u
github.com/mattn/goveralls
go get
-u
golang.org/x/tools/cmd/cover
go get
-u
github.com/Kubuxu/overalls
# saves/vendors third-party dependencies to Godeps/_workspace
# -r flag rewrites import paths to use the vendored path
# ./... performs operation on all packages in tree
...
...
@@ -67,7 +81,7 @@ clean:
uninstall
:
$(MAKE)
-C
cmd/ipfs uninstall
PHONY
+=
all
help
godep gx_check
PHONY
+=
all
help
godep gx_check
dl_coveralls
PHONY
+=
go_check deps vendor install build nofuse clean uninstall
##############################################################
...
...
@@ -85,14 +99,14 @@ test_3node:
test_go_fmt
:
bin/test-go-fmt
test_go_short
:
$(go_test)
-test
.short ./...
test_go_expensive
:
$(go_test)
./...
test_go_race
:
$(go_test)
./...
-race
test_go_short
:
GOTFLAGS += -test.short
test_go_race
:
GOTFLAGS += -race
test_go_expensive test_go_short test_go_race
:
$(GOT)
ifneq
($(COVERALLS_TOKEN),
)
goveralls
-coverprofile
=
overalls.coverprofile
-service
$(SERVICE)
endif
test_sharness_short
:
$(MAKE)
-j1
-C
test
/sharness/
...
...
circle.yml
浏览文件 @
36708cc0
...
...
@@ -7,6 +7,8 @@ machine:
CIRCLE
:
1
IMPORT_PATH
:
"
github.com/ipfs/go-ipfs"
GOPATH
:
"
$HOME/.go_workspace"
GOBIN
:
"
$GOPATH/bin"
SERVICE
:
"
circle-ci"
post
:
-
sudo rm -rf /usr/local/go
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论