1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00

Merge pull request #22 from goreleaser/changelog

added changelog
This commit is contained in:
Carlos Alexandro Becker 2016-12-31 14:06:33 -02:00 committed by GitHub
commit 7dce982958
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)