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:
parent
dc7b9c6852
commit
baf6a28559
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user