mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
ci: another attempt at a fix
This commit is contained in:
@@ -38,10 +38,9 @@ func main() {
|
|||||||
WithExec([]string{"go", "mod", "tidy"}).WithEnvVariable("CI", "true")
|
WithExec([]string{"go", "mod", "tidy"}).WithEnvVariable("CI", "true")
|
||||||
|
|
||||||
// run application tests
|
// run application tests
|
||||||
test := runner.WithWorkdir("/src_d/src/").WithExec([]string{"go", "test", "./..."})
|
test := runner.WithWorkdir("/src_d/src/").WithExec([]string{"go", "test", "./..."}).WithEnvVariable("CI", "true")
|
||||||
//.WithEnvVariable("CI", "true")
|
|
||||||
|
|
||||||
buildDir := test.Directory("/src/")
|
buildDir := test.Directory("/src_d/src/")
|
||||||
|
|
||||||
for _, goos := range geese {
|
for _, goos := range geese {
|
||||||
path := fmt.Sprintf("/dist/")
|
path := fmt.Sprintf("/dist/")
|
||||||
@@ -51,8 +50,7 @@ func main() {
|
|||||||
build := test.
|
build := test.
|
||||||
WithEnvVariable("GOOS", goos).
|
WithEnvVariable("GOOS", goos).
|
||||||
WithEnvVariable("GOARCH", goarch).
|
WithEnvVariable("GOARCH", goarch).
|
||||||
WithExec([]string{"go", "build", "-o", filename})
|
WithExec([]string{"go", "build", "-o", filename}).WithEnvVariable("CI", "true")
|
||||||
//.WithEnvVariable("CI", "true")
|
|
||||||
|
|
||||||
buildDir = buildDir.WithDirectory(path, build.Directory(path))
|
buildDir = buildDir.WithDirectory(path, build.Directory(path))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user