Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
3e5d0abb
M
minikube
项目概览
Chu Peng 楚鹏
/
minikube
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
minikube
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3e5d0abb
编写于
9月 10, 2020
作者:
M
Medya Gh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add HTML report to Makefile and funtional only test
上级
ef7e7e8e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
4 deletion
+16
-4
Makefile
Makefile
+16
-4
未找到文件。
Makefile
浏览文件 @
3e5d0abb
...
...
@@ -39,7 +39,7 @@ REGISTRY_GH?=docker.pkg.github.com/kubernetes/minikube
# Get git commit id
COMMIT_NO
:=
$(
shell
git rev-parse HEAD 2> /dev/null
||
true
)
COMMIT
?=
$(
if
$(
shell
git status
--porcelain
--untracked-files
=
no
)
,
"
${COMMIT_NO}
-dirty"
,
"
${COMMIT_NO}
"
)
COMMIT_SHORT
=
$(
shell
git rev-parse
--short
HEAD 2> /dev/null
||
true
)
HYPERKIT_BUILD_IMAGE
?=
karalabe/xgo-1.12.x
# NOTE: "latest" as of 2020-05-13. kube-cross images aren't updated as often as Kubernetes
# https://github.com/kubernetes/kubernetes/blob/master/build/build-image/cross/VERSION
...
...
@@ -286,16 +286,28 @@ docker-machine-driver-kvm2: out/docker-machine-driver-kvm2 ## Build KVM2 driver
.PHONY
:
integration
integration
:
out/minikube$(IS_EXE)
##
Trigger minikube integration test
go
test
-ldflags
=
"
${MINIKUBE_LDFLAGS}
"
-v
-test
.timeout
=
90m ./test/integration
--tags
=
"
$(MINIKUBE_INTEGRATION_BUILD_TAGS)
"
$(TEST_ARGS)
go
test
-ldflags
=
"
${MINIKUBE_LDFLAGS}
"
-v
-test
.timeout
=
90m ./test/integration
--tags
=
"
$(MINIKUBE_INTEGRATION_BUILD_TAGS)
"
$(TEST_ARGS)
2>&1 |
tee
"./out/testout_
$(COMMIT_SHORT)
.txt"
.PHONY
:
integration-none-driver
integration-none-driver
:
e2e-linux-$(GOARCH) out/minikube-linux-$(GOARCH)
##
Trigger minikube none driver test
sudo
-E
out/e2e-linux-
$(GOARCH)
-testdata-dir
"test/integration/testdata"
-minikube-start-args
=
"--driver=none"
-test
.v
-test
.timeout
=
60m
-binary
=
out/minikube-linux-amd64
$(TEST_ARGS)
sudo
-E
out/e2e-linux-
$(GOARCH)
-testdata-dir
"test/integration/testdata"
-minikube-start-args
=
"--driver=none"
-test
.v
-test
.timeout
=
60m
-binary
=
out/minikube-linux-amd64
$(TEST_ARGS)
2>&1 |
tee
"./out/testout_
$(COMMIT_SHORT)
.txt"
.PHONY
:
integration-versioned
integration-versioned
:
out/minikube
##
Trigger minikube integration testing
go
test
-ldflags
=
"
${MINIKUBE_LDFLAGS}
"
-v
-test
.timeout
=
90m ./test/integration
--tags
=
"
$(MINIKUBE_INTEGRATION_BUILD_TAGS)
versioned"
$(TEST_ARGS)
go
test
-ldflags
=
"
${MINIKUBE_LDFLAGS}
"
-v
-test
.timeout
=
90m ./test/integration
--tags
=
"
$(MINIKUBE_INTEGRATION_BUILD_TAGS)
versioned"
$(TEST_ARGS)
2>&1 |
tee
"./out/testout_
$(COMMIT_SHORT)
.txt"
.PHONY
:
integration-functional-only
integration-functional-only
:
out/minikube$(IS_EXE)
##
Trigger only functioanl tests in integration test
go
test
-ldflags
=
"
${MINIKUBE_LDFLAGS}
"
-v
-test
.timeout
=
20m ./test/integration
--tags
=
"
$(MINIKUBE_INTEGRATION_BUILD_TAGS)
"
$(TEST_ARGS)
-test
.run TestFunctional 2>&1 |
tee
"./out/testout_
$(COMMIT_SHORT)
.txt"
html_report
:
##
generate HTML gopogh report out of the last test run
go tool test2json
-t
<
"./out/testout_
$(COMMIT_SHORT)
.txt"
>
"./out/testout_
$(COMMIT_SHORT)
.json"
gopogh
-in
"./out/testout_
$(COMMIT_SHORT)
.json"
-out
./out/testout_
$(COMMIT_SHORT)
.html
-name
"
$(
shell
git rev-parse --abbrev-ref HEAD
)
"
-pr
""
-repo
github.com/kubernetes/minikube/
-details
"
${COMMIT_SHORT}
"
@
echo
"-------------------------- Open HTML Report in Browser: --------------------------"
@
echo
open
$(CURDIR)
/out/testout_
$(COMMIT_SHORT)
.html
@
echo
"-----------------------------------------------------------------------------------"
open
$(CURDIR)
/out/testout_
$(COMMIT_SHORT)
.html
||
true
.PHONY
:
test
test
:
pkg/minikube/assets/assets.go pkg/minikube/translate/translations.go
##
Trigger minikube test
MINIKUBE_LDFLAGS
=
"
${MINIKUBE_LDFLAGS}
"
./test.sh
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录