mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
cleanup
This commit is contained in:
parent
5b648b8a0d
commit
35278e85f5
@ -6,8 +6,6 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"github.com/goreleaser/goreleaser/config"
|
"github.com/goreleaser/goreleaser/config"
|
||||||
"github.com/goreleaser/goreleaser/context"
|
"github.com/goreleaser/goreleaser/context"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
@ -97,7 +95,6 @@ func TestRunPipeBinary(t *testing.T) {
|
|||||||
ctx.AddBinary("darwinamd64", "mybin_darwin", "mybin", filepath.Join(dist, "mybin_darwin", "mybin"))
|
ctx.AddBinary("darwinamd64", "mybin_darwin", "mybin", filepath.Join(dist, "mybin_darwin", "mybin"))
|
||||||
ctx.AddBinary("windowsamd64", "mybin_win", "mybin.exe", filepath.Join(dist, "mybin_win", "mybin.exe"))
|
ctx.AddBinary("windowsamd64", "mybin_win", "mybin.exe", filepath.Join(dist, "mybin_win", "mybin.exe"))
|
||||||
assert.NoError(Pipe{}.Run(ctx))
|
assert.NoError(Pipe{}.Run(ctx))
|
||||||
fmt.Println(ctx.Artifacts)
|
|
||||||
assert.Contains(ctx.Artifacts, "mybin_darwin/mybin")
|
assert.Contains(ctx.Artifacts, "mybin_darwin/mybin")
|
||||||
assert.Contains(ctx.Artifacts, "mybin_win/mybin.exe")
|
assert.Contains(ctx.Artifacts, "mybin_win/mybin.exe")
|
||||||
assert.Len(ctx.Artifacts, 2)
|
assert.Len(ctx.Artifacts, 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user