1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-05 13:15:26 +02:00

added changelog

closes #20
This commit is contained in:
Carlos Alexandro Becker 2016-12-31 14:05:14 -02:00
parent bfa4d55db9
commit 9203df58df
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
4 changed files with 15 additions and 1 deletions

0
config/.test/5/CHANGELOG Normal file
View File

View File

View File

@ -13,7 +13,7 @@ import (
var (
emptyBrew = Homebrew{}
filePatterns = []string{"LICENCE*", "LICENSE*", "README*"}
filePatterns = []string{"LICENCE*", "LICENSE*", "README*", "CHANGELOG*"}
)
// Homebrew contains the brew section

View File

@ -84,6 +84,20 @@ func TestFillFilesArbitratryENNoSuffix(t *testing.T) {
assert.Equal([]string{"LICENCE"}, config.Files)
}
func TestFillFilesChangelog(t *testing.T) {
assert := assert.New(t)
cwd, _ := os.Getwd()
os.Chdir("./.test/5")
defer os.Chdir(cwd)
config := ProjectConfig{}
err := config.fillFiles()
assert.NoError(err)
assert.Equal([]string{"CHANGELOG", "CHANGELOG.md"}, config.Files)
}
func TestValidadeMissingBinaryName(t *testing.T) {
assert := assert.New(t)