-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously we'd bump to a float, which is incorrect, and couldn't be parsed when we attempted to bump the version again.
- Loading branch information
Kevin Burke
committed
May 30, 2016
1 parent
262884d
commit 2dc60a7
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.PHONY: test | ||
|
||
install: | ||
go install ./... | ||
|
||
test: | ||
go test -race ./... -timeout 1s | ||
|
||
release: install test | ||
bump_version minor main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main | ||
|
||
import ( | ||
"reflect" | ||
"testing" | ||
) | ||
|
||
func TestVersionString(t *testing.T) { | ||
typ := reflect.TypeOf(VERSION) | ||
if typ.String() != "string" { | ||
t.Errorf("expected VERSION to be a string, got %#v (type %#v)", VERSION, typ.String()) | ||
} | ||
} |