Skip to content

Commit

Permalink
ci: version tag (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei authored May 4, 2022
1 parent fa7a9a6 commit 10ccdf4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ builds:
- windows
ldflags:
- -s -w
- -X github.com/lvisei/image2tiles/cmd/image2tiles/main.version={{.Version}}
- -X github.com/lvisei/image2tiles/cmd/image2tiles/main.commit={{.ShortCommit}}
- -X github.com/lvisei/image2tiles/cmd/image2tiles/main.date={{.Date}}
- -X main.version={{.Version}}
- -X main.commit={{.ShortCommit}}
- -X main.date={{.Date}}

archives:
- replacements:
Expand All @@ -46,16 +46,16 @@ changelog:
exclude:
- '^docs:'
- '^test:'
- '^chore'
- '^chore:'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
regexp: "^.*feat:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
regexp: "^.*fix:+.*$"
order: 10
- title: Other
order: 999
6 changes: 3 additions & 3 deletions image2tiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func TestPrepare(t *testing.T) {
converter := image2tiles.NewConverter()
imageFilename := "testdata/earth_5568*3712.jpg"
imageFilename := "testdata/earth_5568_3712.jpg"

if err := converter.Prepare(imageFilename, "#fff"); err != nil {
t.Fatal("prepare", err)
Expand All @@ -17,7 +17,7 @@ func TestPrepare(t *testing.T) {

func TestTile(t *testing.T) {
converter := image2tiles.NewConverter()
imageFilename := "testdata/earth_5568*3712.jpg"
imageFilename := "testdata/earth_5568_3712.jpg"

if err := converter.Prepare(imageFilename, "#00000000"); err != nil {
t.Fatal("prepare", err)
Expand All @@ -30,7 +30,7 @@ func TestTile(t *testing.T) {

func TestExecute(t *testing.T) {
converter := image2tiles.NewConverter()
imageFilename := "testdata/earth_5568*3712.jpg"
imageFilename := "testdata/earth_5568_3712.jpg"

if err := converter.Prepare(imageFilename, "#00000000"); err != nil {
t.Fatal("prepare", err)
Expand Down
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
// TestLoadImage test open different type image file
func TestLoadImage(t *testing.T) {
assertions := assert.New(t)
jpgFilename := "testdata/earth_5568*3712.jpg"
jpgFilename := "testdata/earth_5568_3712.jpg"
openedImage, err := image2tiles.LoadImage(jpgFilename)
assertions.True(err == nil, "jpg image format should be supported")
assertions.True(openedImage != nil, "opened jpg file should not be nil")

pngFilename := "testdata/spongebob_698*530.png"
pngFilename := "testdata/spongebob_698_530.png"
openedImage, err = image2tiles.LoadImage(pngFilename)
assertions.True(err == nil, "png image format should be supported")
assertions.True(openedImage != nil, "opened jpg file should not be nil")
Expand Down

0 comments on commit 10ccdf4

Please # to comment.