Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit318e09e

Browse files
committed
Use release binary for integration test
1 parentef11313 commit318e09e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎ci/integration/setup_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ func init() {
3232

3333
// build the coder-cli binary and move to the integration testing bin directory
3434
funcbuild(pathstring)error {
35+
tar:=fmt.Sprintf("coder-cli-linux-amd64.tar.gz")
36+
dir:=filepath.Dir(path)
3537
cmd:=exec.Command(
3638
"sh","-c",
37-
fmt.Sprintf("cd ../../ && go build -o %s ./cmd/coder",path),
39+
fmt.Sprintf(
40+
"cd ../../ && mkdir -p %s && ./ci/steps/build.sh && cp ./ci/bin/%s %s/ && tar -xzf %s -C %s",
41+
dir,tar,dir,filepath.Join(dir,tar),dir),
3842
)
39-
cmd.Env=append(os.Environ(),"GOOS=linux","CGO_ENABLED=0")
4043

4144
out,err:=cmd.CombinedOutput()
4245
iferr!=nil {

‎ci/steps/build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ cd "$(dirname "$0")"
1010
export GOARCH=amd64
1111
tag=$(git describe --tags)
1212

13-
mkdir -p bin
14-
1513
build(){
1614
tmpdir=$(mktemp -d)
1715
go build -ldflags"-X main.version=${tag}" -o"$tmpdir/coder" ../../cmd/coder

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp