Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
HugeYuan
delve
提交
8221250e
D
delve
项目概览
HugeYuan
/
delve
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
delve
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8221250e
编写于
12月 16, 2020
作者:
A
Alessandro Arzilli
提交者:
GitHub
12月 16, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
split testing load between more CI services (#2251)
上级
d61bf018
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
107 addition
and
51 deletion
+107
-51
.github/workflows/test.yml
.github/workflows/test.yml
+22
-0
.travis.yml
.travis.yml
+0
-23
README.md
README.md
+1
-0
_scripts/gen-travis.go
_scripts/gen-travis.go
+48
-27
_scripts/make.go
_scripts/make.go
+3
-1
appveyor.yml
appveyor.yml
+33
-0
未找到文件。
.github/workflows/test.yml
0 → 100644
浏览文件 @
8221250e
name
:
Delve CI
on
:
[
push
,
pull_request
]
jobs
:
build
:
runs-on
:
${{matrix.os}}
strategy
:
matrix
:
include
:
-
go
:
1.15
os
:
macos-latest
-
go
:
1.14
os
:
ubuntu-latest
-
go
:
1.13
os
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/setup-go@v1
with
:
go-version
:
${{matrix.go}}
-
run
:
go run _scripts/make.go test
.travis.yml
浏览文件 @
8221250e
...
...
@@ -4,8 +4,6 @@ go_import_path: github.com/go-delve/delve
os
:
-
linux
-
osx
-
windows
arch
:
-
amd64
...
...
@@ -13,39 +11,18 @@ arch:
go
:
-
1.15.3
# hold back version of Go, see issue #42484
-
1.14.x
-
1.13.x
-
tip
matrix
:
allow_failures
:
-
go
:
tip
exclude
:
-
os
:
osx
arch
:
arm64
-
os
:
windows
arch
:
arm64
-
os
:
windows
go
:
1.14.x
-
os
:
windows
go
:
1.13.x
-
os
:
osx
go
:
1.14.x
-
os
:
osx
go
:
1.13.x
-
arch
:
arm64
go
:
1.14.x
-
arch
:
arm64
go
:
1.13.x
-
os
:
windows
go
:
tip
-
arch
:
arm64
go
:
tip
before_install
:
-
export GOFLAGS=-mod=vendor
-
if [ $TRAVIS_OS_NAME = "linux" ]; then sudo apt-get -qq update; sudo apt-get install -y dwz; echo "dwz version $(dwz --version)"; fi
-
if [ $TRAVIS_OS_NAME = "windows" ]; then choco install procdump make --ignorechecksum; fi
# 386 linux
...
...
README.md
浏览文件 @
8221250e
...
...
@@ -3,6 +3,7 @@
[
![license
](
http://img.shields.io/badge/license-MIT-blue.svg
)
](https://raw.githubusercontent.com/go-delve/delve/master/LICENSE)
[
![GoDoc
](
https://godoc.org/github.com/go-delve/delve?status.svg
)
](https://godoc.org/github.com/go-delve/delve)
[
![Build Status
](
https://travis-ci.org/go-delve/delve.svg?branch=master
)
](https://travis-ci.org/go-delve/delve)
[
![Build status
](
https://ci.appveyor.com/api/projects/status/0v8r99smxost466s/branch/master?svg=true
)
](https://ci.appveyor.com/project/derekparker/delve-facy3/branch/master)
The GitHub issue tracker is for
**bugs**
only. Please use the
[
developer mailing list
](
https://groups.google.com/forum/#!forum/delve-dev
)
for any feature proposals and discussions.
...
...
_scripts/gen-travis.go
浏览文件 @
8221250e
...
...
@@ -55,56 +55,38 @@ func main() {
}
}
out
:=
bufio
.
NewWriter
(
os
.
Stdout
)
err
:=
template
.
Must
(
template
.
New
(
"travis.yml"
)
.
Parse
(
`language: go
travisfh
,
err
:=
os
.
Create
(
".travis.yml"
)
if
err
!=
nil
{
fmt
.
Fprintf
(
os
.
Stderr
,
"could not create .travis.yml: %v"
)
os
.
Exit
(
1
)
}
out
:=
bufio
.
NewWriter
(
travisfh
)
err
=
template
.
Must
(
template
.
New
(
"travis.yml"
)
.
Parse
(
`language: go
sudo: required
go_import_path: github.com/go-delve/delve
os:
- linux
- osx
- windows
arch:
- amd64
- arm64
go:
{{- range .GoVersions}}
- {{.DotX}}
{{- end}}
- {{index .GoVersions 0}}
- tip
matrix:
allow_failures:
- go: tip
exclude:
- os: osx
arch: arm64
- os: windows
arch: arm64
{{- /* Exclude all testing on anything except the most recent version of Go for anything that isn't (GOOS=linux, GOARCH=amd64)*/ -}}
{{- range .GoVersions}}{{if not .MaxVersion}}
- os: windows
go: {{.DotX}}
{{- end}}{{end -}}
{{- range .GoVersions}}{{if not .MaxVersion}}
- os: osx
go: {{.DotX}}
{{- end}}{{end -}}
{{- range .GoVersions}}{{if not .MaxVersion}}
- arch: arm64
go: {{.DotX}}
{{- end}}{{end}}
- os: windows
go: tip
- arch: arm64
go: tip
before_install:
- export GOFLAGS=-mod=vendor
- if [ $TRAVIS_OS_NAME = "linux" ]; then sudo apt-get -qq update; sudo apt-get install -y dwz; echo "dwz version $(dwz --version)"; fi
- if [ $TRAVIS_OS_NAME = "windows" ]; then choco install procdump make; fi
# 386 linux
...
...
@@ -146,4 +128,43 @@ cache:
os
.
Exit
(
1
)
}
_
=
out
.
Flush
()
_
=
travisfh
.
Close
()
githubfh
,
err
:=
os
.
Create
(
".github/workflows/test.yml"
)
if
err
!=
nil
{
fmt
.
Fprintf
(
os
.
Stderr
,
"Could not create .github/test.yml: %v"
,
err
)
os
.
Exit
(
1
)
}
out
=
bufio
.
NewWriter
(
githubfh
)
err
=
template
.
Must
(
template
.
New
(
".github/workflows/test.yml"
)
.
Parse
(
`name: Delve CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{"{{"}}matrix.os{{"}}"}}
strategy:
matrix:
include:
- go: {{index .GoVersions 0}}
os: macos-latest
- go: {{index .GoVersions 1}}
os: ubuntu-latest
- go: {{index .GoVersions 2}}
os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: ${{"{{"}}matrix.go{{"}}"}}
- run: go run _scripts/make.go test
`
))
.
Execute
(
out
,
args
)
if
err
!=
nil
{
fmt
.
Fprintf
(
os
.
Stderr
,
"Error executing template: %v"
,
err
)
os
.
Exit
(
1
)
}
_
=
out
.
Flush
()
_
=
githubfh
.
Close
()
}
_scripts/make.go
浏览文件 @
8221250e
...
...
@@ -19,6 +19,7 @@ const DelveMainPackagePath = "github.com/go-delve/delve/cmd/dlv"
var
Verbose
bool
var
NOTimeout
bool
var
TestIncludePIE
bool
var
TestSet
,
TestRegex
,
TestBackend
,
TestBuildMode
string
func
NewMakeCommands
()
*
cobra
.
Command
{
...
...
@@ -94,6 +95,7 @@ This option can only be specified if testset is basic or a single package.`)
pie PIE buildmode
This option can only be specified if testset is basic or a single package.`
)
test
.
PersistentFlags
()
.
BoolVarP
(
&
TestIncludePIE
,
"pie"
,
""
,
true
,
"Standard testing should include PIE"
)
RootCommand
.
AddCommand
(
test
)
...
...
@@ -332,7 +334,7 @@ func testStandard() {
fmt
.
Println
(
"
\n
Testing RR backend"
)
testCmdIntl
(
"basic"
,
""
,
"rr"
,
"normal"
)
}
if
runtime
.
GOOS
==
"linux"
||
(
runtime
.
GOOS
==
"windows"
&&
goversion
.
VersionAfterOrEqual
(
runtime
.
Version
(),
1
,
15
))
{
if
TestIncludePIE
&&
(
runtime
.
GOOS
==
"linux"
||
(
runtime
.
GOOS
==
"windows"
&&
goversion
.
VersionAfterOrEqual
(
runtime
.
Version
(),
1
,
15
)
))
{
fmt
.
Println
(
"
\n
Testing PIE buildmode, default backend"
)
testCmdIntl
(
"basic"
,
""
,
"default"
,
"pie"
)
testCmdIntl
(
"core"
,
""
,
"default"
,
"pie"
)
...
...
appveyor.yml
0 → 100644
浏览文件 @
8221250e
version
:
'
{build}'
os
:
Windows Server 2012 R2
clone_folder
:
c:\gopath\src\github.com\go-delve\delve
environment
:
GOPATH
:
C:\gopath
install
:
ps
:
|
# Install MinGW.
if (-Not (Test-Path "C:\mingw64")) {
$file = "x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z"
$url = "https://bintray.com/artifact/download/drewwells/generic/"
$url += $file
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile $file
&7z x -oC:\ $file > $null
}
# Install Procdump
if (-Not (Test-Path "C:\procdump")) {
mkdir c:\procdump
Invoke-WebRequest -UserAgent wget -Uri https://download.sysinternals.com/files/Procdump.zip -OutFile C:\procdump\procdump.zip
&7z x -oC:\procdump\ C:\procdump\procdump.zip > $null
}
set PATH=c:\procdump;c:\mingw64\bin;%GOPATH%\bin;%PATH%
echo %PATH%
echo %GOPATH%
go version
go env
cache
:
C:\mingw64
C:\procdump
build_script
:
mingw32-make install
test_script
:
mingw32-make test
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录