1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

travis doesnt have git setup

This commit is contained in:
Carlos Alexandro Becker 2017-04-21 15:29:45 -03:00
parent dc7b9c6852
commit baf6a28559
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -115,7 +115,14 @@ func setup(t *testing.T) (current string, back func()) {
createGoreleaserYaml(t)
createMainGo(t)
for _, cmd := range gitCmds {
assert.NoError(exec.Command("git", cmd...).Run())
var args = []string{
"-c",
"user.name='GoReleaser'",
"-c",
"user.email='test@goreleaser.github.com'",
}
args = append(args, cmd...)
assert.NoError(exec.Command("git", args...).Run())
}
return folder, func() {
assert.NoError(os.Chdir(previous))