|
|
@ -40,20 +40,19 @@ steps: |
|
|
|
- go test -v -race -coverprofile=coverage.txt -covermode=atomic |
|
|
|
- go test -v -race -coverprofile=coverage.txt -covermode=atomic |
|
|
|
`, |
|
|
|
`, |
|
|
|
want: []string{ |
|
|
|
want: []string{ |
|
|
|
`<span class="nt">kind</span><span class="p">:</span><span class="w"> </span><span class="l">pipeline</span>`, |
|
|
|
`<span class="line"><span class="cl"><span class="nt">kind</span><span class="p">:</span><span class="w"> </span><span class="l">pipeline</span>`, |
|
|
|
`<span class="w"></span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">default</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">default</span>`, |
|
|
|
`<span class="w"> |
|
|
|
`</span></span><span class="line"><span class="cl">`, |
|
|
|
</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">steps</span><span class="p">:</span>`, |
|
|
|
`<span class="w"></span><span class="nt">steps</span><span class="p">:</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">test</span>`, |
|
|
|
`<span class="w"></span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">test</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">golang:1.13</span>`, |
|
|
|
`<span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">golang:1.13</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">environment</span><span class="p">:</span>`, |
|
|
|
`<span class="w"> </span><span class="nt">environment</span><span class="p">:</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span><span class="w"> </span><span class="nt">GOPROXY</span><span class="p">:</span><span class="w"> </span><span class="l">https://goproxy.cn</span>`, |
|
|
|
`<span class="w"></span><span class="w"> </span><span class="nt">GOPROXY</span><span class="p">:</span><span class="w"> </span><span class="l">https://goproxy.cn</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">commands</span><span class="p">:</span>`, |
|
|
|
`<span class="w"> </span><span class="nt">commands</span><span class="p">:</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span><span class="w"> </span>- <span class="l">go get -u</span>`, |
|
|
|
`<span class="w"></span><span class="w"> </span>- <span class="l">go get -u</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="l">go build -v</span>`, |
|
|
|
`<span class="w"> </span>- <span class="l">go build -v</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="l">go test -v -race -coverprofile=coverage.txt -covermode=atomic</span><span class="w"> |
|
|
|
`<span class="w"> </span>- <span class="l">go test -v -race -coverprofile=coverage.txt -covermode=atomic</span><span class="w"> |
|
|
|
</span></span></span>`, |
|
|
|
</span>`, |
|
|
|
|
|
|
|
`<span class="w"> |
|
|
|
`<span class="w"> |
|
|
|
</span>`, |
|
|
|
</span>`, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -76,20 +75,19 @@ steps: |
|
|
|
- go test -v -race -coverprofile=coverage.txt -covermode=atomic |
|
|
|
- go test -v -race -coverprofile=coverage.txt -covermode=atomic |
|
|
|
`, |
|
|
|
`, |
|
|
|
want: []string{ |
|
|
|
want: []string{ |
|
|
|
`<span class="nt">kind</span><span class="p">:</span><span class="w"> </span><span class="l">pipeline</span>`, |
|
|
|
`<span class="line"><span class="cl"><span class="nt">kind</span><span class="p">:</span><span class="w"> </span><span class="l">pipeline</span>`, |
|
|
|
`<span class="w"></span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">default </span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">default </span>`, |
|
|
|
`<span class="w"> |
|
|
|
`</span></span><span class="line"><span class="cl">`, |
|
|
|
</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span><span class="nt">steps</span><span class="p">:</span>`, |
|
|
|
`<span class="w"></span><span class="nt">steps</span><span class="p">:</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">test</span>`, |
|
|
|
`<span class="w"></span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">test</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">golang:1.13</span>`, |
|
|
|
`<span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">golang:1.13</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">environment</span><span class="p">:</span>`, |
|
|
|
`<span class="w"> </span><span class="nt">environment</span><span class="p">:</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span><span class="w"> </span><span class="nt">GOPROXY</span><span class="p">:</span><span class="w"> </span><span class="l">https://goproxy.cn</span>`, |
|
|
|
`<span class="w"></span><span class="w"> </span><span class="nt">GOPROXY</span><span class="p">:</span><span class="w"> </span><span class="l">https://goproxy.cn</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">commands</span><span class="p">:</span>`, |
|
|
|
`<span class="w"> </span><span class="nt">commands</span><span class="p">:</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"></span><span class="w"> </span>- <span class="l">go get -u</span>`, |
|
|
|
`<span class="w"></span><span class="w"> </span>- <span class="l">go get -u</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="l">go build -v</span>`, |
|
|
|
`<span class="w"> </span>- <span class="l">go build -v</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="l">go test -v -race -coverprofile=coverage.txt -covermode=atomic</span>`, |
|
|
|
`<span class="w"> </span>- <span class="l">go test -v -race -coverprofile=coverage.txt -covermode=atomic</span>`, |
|
|
|
`</span></span><span class="line"><span class="cl"><span class="w"> </span></span></span>`, |
|
|
|
`<span class="w"> </span>`, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|