mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fixed build tests
This commit is contained in:
parent
881b17ede1
commit
3a4128b60f
@ -87,14 +87,17 @@ func TestRunPipeFormatBinary(t *testing.T) {
|
||||
assert.NoError(err)
|
||||
var binary = filepath.Join(folder, "binary-testing")
|
||||
var config = config.Project{
|
||||
Dist: folder,
|
||||
Build: config.Build{
|
||||
Binary: "testing",
|
||||
Goos: []string{
|
||||
runtime.GOOS,
|
||||
},
|
||||
Goarch: []string{
|
||||
runtime.GOARCH,
|
||||
ProjectName: "testing",
|
||||
Dist: folder,
|
||||
Builds: []config.Build{
|
||||
{
|
||||
Binary: "testing",
|
||||
Goos: []string{
|
||||
runtime.GOOS,
|
||||
},
|
||||
Goarch: []string{
|
||||
runtime.GOARCH,
|
||||
},
|
||||
},
|
||||
},
|
||||
Archive: config.Archive{
|
||||
@ -103,8 +106,8 @@ func TestRunPipeFormatBinary(t *testing.T) {
|
||||
},
|
||||
}
|
||||
var ctx = &context.Context{
|
||||
Config: config,
|
||||
Archives: map[string]string{},
|
||||
Config: config,
|
||||
Folders: map[string]string{},
|
||||
}
|
||||
assert.NoError(Pipe{}.Run(ctx))
|
||||
assert.True(exists(binary))
|
||||
|
Loading…
x
Reference in New Issue
Block a user