You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-05 00:59:04 +02:00
refactor: unifying snapshot with skip-validate and skip-publish (#575)
* refactor: removed goreleaserlib: moved all to main * refactor: wip: snapshot * fix: more pipes * fix: more pipes * fix: git tests * fix: some other validate and publish usages * fix: git dirty check when snapshoting * fix: nfpm: use tag instead of version * test: docker: print docker run output if registry fails
This commit is contained in:
committed by
GitHub
parent
2bb509f5a8
commit
fdc032ec15
@ -31,10 +31,10 @@ func start(t *testing.T) {
|
||||
if *it {
|
||||
return
|
||||
}
|
||||
if err := exec.Command(
|
||||
if out, err := exec.Command(
|
||||
"docker", "run", "-d", "-p", "5000:5000", "--name", "registry", "registry:2",
|
||||
).Run(); err != nil {
|
||||
t.Log("failed to start docker registry", err)
|
||||
).CombinedOutput(); err != nil {
|
||||
t.Log("failed to start docker registry", string(out), err)
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
@ -262,7 +262,8 @@ func TestRunPipe(t *testing.T) {
|
||||
docker.docker,
|
||||
},
|
||||
})
|
||||
ctx.Publish = docker.publish
|
||||
// TODO: ideally refactor this as well
|
||||
ctx.Snapshot = !docker.publish
|
||||
ctx.Env = map[string]string{
|
||||
"FOO": "123",
|
||||
}
|
||||
|
Reference in New Issue
Block a user