1
0
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:
Carlos Alexandro Becker
2018-02-24 17:59:08 -03:00
committed by GitHub
parent 2bb509f5a8
commit fdc032ec15
24 changed files with 113 additions and 242 deletions

View File

@ -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",
}