Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
cd3adeb4
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,发现更多精彩内容 >>
未验证
提交
cd3adeb4
编写于
5月 18, 2020
作者:
M
Medya Gh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add hyperv to master
上级
2a46ba72
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
86 addition
and
1 deletion
+86
-1
.github/workflows/master.yml
.github/workflows/master.yml
+86
-1
未找到文件。
.github/workflows/master.yml
浏览文件 @
cd3adeb4
...
...
@@ -251,7 +251,92 @@ jobs:
echo "*** $numPass Passed ***"
If ($numFail -ge 0){ exit 2 } else { echo "goodjob" }
If ($numPass -eq 0){ exit 2 }
functional_test_hyperv_windows
:
needs
:
[
build_minikube
]
env
:
TIME_ELAPSED
:
time
JOB_NAME
:
"
functional_test_hyperv_windows"
GOPOGH_RESULT
:
"
"
runs-on
:
[
self-hosted
,
windows-10-ent
,
16CPUs
]
steps
:
-
name
:
Clean up
continue-on-error
:
true
shell
:
powershell
run
:
|
echo $env:computerName
ls
$ErrorActionPreference = "SilentlyContinue"
Remove-Item minikube_binaries -Force -Recurse
ls
-
name
:
Download Binaries
uses
:
actions/download-artifact@v1
with
:
name
:
minikube_binaries
-
name
:
Info
shell
:
powershell
run
:
|
echo $env:computername
Get-WmiObject -class Win32_ComputerSystem
-
name
:
Run Integration Test in powershell
continue-on-error
:
true
shell
:
powershell
run
:
|
cd minikube_binaries
New-Item -Force -Path "report" -ItemType Directory
New-Item -Force -Path "testhome" -ItemType Directory
$START_TIME=(GET-DATE)
$env:KUBECONFIG="${pwd}\testhome\kubeconfig"
$env:MINIKUBE_HOME="${pwd}\testhome"
$ErrorActionPreference = "SilentlyContinue"
./e2e-windows-amd64.exe --minikube-start-args="--driver=hyperv" --test.timeout=13m --test.v --test.run=TestFunctional --binary="./minikube-windows-amd64.exe" | Out-File -FilePath .\report\testout.txt -Encoding ASCII
$END_TIME=(GET-DATE)
echo $END_TIME
$DURATION=(NEW-TIMESPAN -Start $START_TIME -End $END_TIME)
echo $DURATION
$SECS=($DURATION.TotalSeconds)
$MINS=($DURATION.TotalMinutes)
$T_ELAPSED="$MINS m $SECS s"
echo "----"
echo $T_ELAPSED
echo "----"
echo "::set-env name=TIME_ELAPSED::$T_ELAPSED"
-
name
:
Generate HTML Report
continue-on-error
:
true
shell
:
powershell
run
:
|
cd minikube_binaries
Get-Content .\report\testout.txt | go tool test2json -t | Out-File -FilePath .\report\testout.json -Encoding ASCII
$STAT=(gopogh -in .\report\testout.json -out .\report\testout.html -name "${Env:JOB_NAME} ${Env:GITHUB_REF}" -repo "${Env:GITHUB_REPOSITORY}" -details "${Env:GITHUB_SHA}")
echo status: ${STAT}
$FailNum=$(echo $STAT | jq '.NumberOfFail')
$TestsNum=$(echo $STAT | jq '.NumberOfTests')
$GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${Env:TIME_ELAPSED}"
echo "::set-env name=GOPOGH_RESULT::${GOPOGH_RESULT}"
echo "::set-env name=STAT::${STAT}"
echo ${GOPOGH_RESULT}
$numFail=(echo $STAT | jq '.NumberOfFail')
$failedTests=( echo $STAT | jq '.FailedTests')
echo "----------------${numFail} Failures----------------------------"
echo $failedTest
echo "-------------------------------------------------------"
$numPass=$(echo $STAT | jq '.NumberOfPass')
echo "*** $numPass Passed ***"
-
uses
:
actions/upload-artifact@v1
with
:
name
:
functional_test_hyperv_windows
path
:
minikube_binaries/report
-
name
:
The End Result functional_test_hyperv_windows
shell
:
powershell
run
:
|
$numFail=(echo $Env:STAT | jq '.NumberOfFail')
$failedTests=( echo $Env:STAT | jq '.FailedTests')
echo "----------------${numFail} Failures----------------------------"
echo $failedTests
echo "-------------------------------------------------------"
$numPass=$(echo $Env:STAT | jq '.NumberOfPass')
echo "*** $numPass Passed ***"
If ($numFail -ge 0){ exit 2 } else { echo "goodjob" }
If ($numPass -eq 0){ exit 2 }
addons_certs_tests_docker_ubuntu
:
runs-on
:
ubuntu-18.04
env
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录