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

Commit9edd1dd

Browse files
committed
Use release binary for integration test
1 parent2d52bb3 commit9edd1dd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎ci/integration/setup_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os"
77
"os/exec"
88
"path/filepath"
9+
"runtime"
910
"strings"
1011
"testing"
1112

@@ -32,11 +33,14 @@ func init() {
3233

3334
// build the coder-cli binary and move to the integration testing bin directory
3435
funcbuild(pathstring)error {
36+
tar:=fmt.Sprintf("coder-cli-%s-%s.tar.gz",runtime.GOOS,runtime.GOARCH)
37+
dir:=filepath.Dir(path)
3538
cmd:=exec.Command(
3639
"sh","-c",
37-
fmt.Sprintf("cd ../../ && go build -o %s ./cmd/coder",path),
40+
fmt.Sprintf(
41+
"cd ../../ && mkdir -p %s && ./ci/steps/build.sh && cp ./ci/bin/%s %s/ && tar -xzf %s -C %s",
42+
dir,tar,dir,filepath.Join(dir,tar),dir),
3843
)
39-
cmd.Env=append(os.Environ(),"GOOS=linux","CGO_ENABLED=0")
4044

4145
out,err:=cmd.CombinedOutput()
4246
iferr!=nil {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp