1
0
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:
Carlos Alexandro Becker 2017-07-03 01:11:46 -03:00
parent 881b17ede1
commit 3a4128b60f
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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))