1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00
This commit is contained in:
Carlos Alexandro Becker 2017-05-01 12:04:31 -03:00
parent 2b4bb6413b
commit 8ab9672370
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 18 additions and 18 deletions

View File

@ -45,15 +45,15 @@ type IgnoredBuild struct {
// Build contains the build configuration section
type Build struct {
Goos []string `yaml:",omitempty"`
Goarch []string `yaml:",omitempty"`
Goarm []string `yaml:",omitempty"`
Ignore []IgnoredBuild `yaml:",omitempty"`
Main string `yaml:",omitempty"`
Ldflags string `yaml:",omitempty"`
Flags string `yaml:",omitempty"`
Binary string `yaml:",omitempty"`
Hooks Hooks `yaml:",omitempty"`
Goos []string `yaml:",omitempty"`
Goarch []string `yaml:",omitempty"`
Goarm []string `yaml:",omitempty"`
Ignore []IgnoredBuild `yaml:",omitempty"`
Main string `yaml:",omitempty"`
Ldflags string `yaml:",omitempty"`
Flags string `yaml:",omitempty"`
Binary string `yaml:",omitempty"`
Hooks Hooks `yaml:",omitempty"`
}
// FormatOverride is used to specify a custom format for a specific GOOS.

View File

@ -43,15 +43,15 @@ func TestAllBuildTargets(t *testing.T) {
},
}
assert.Equal([]buildTarget{
buildTarget{"linux", "386", ""},
buildTarget{"linux", "amd64", ""},
buildTarget{"linux", "arm", "6"},
buildTarget{"linux", "arm64", ""},
buildTarget{"darwin", "amd64", ""},
buildTarget{"freebsd", "386", ""},
buildTarget{"freebsd", "amd64", ""},
buildTarget{"freebsd", "arm", "6"},
buildTarget{"freebsd", "arm", "7"},
{"linux", "386", ""},
{"linux", "amd64", ""},
{"linux", "arm", "6"},
{"linux", "arm64", ""},
{"darwin", "amd64", ""},
{"freebsd", "386", ""},
{"freebsd", "amd64", ""},
{"freebsd", "arm", "6"},
{"freebsd", "arm", "7"},
}, buildTargets(ctx))
}