Skip to content

Commit

Permalink
Merge pull request #22 from nats-io/release_0_1_3
Browse files Browse the repository at this point in the history
Release v0.1.3
  • Loading branch information
kozlovic authored Nov 11, 2019
2 parents abe9e4e + 11c60fb commit f1930e1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module github.com/nats-io/nkeys

require golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4

go 1.13
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

// Version is our current version
const Version = "0.1.2"
const Version = "0.1.3"

// Errors
var (
Expand Down
18 changes: 18 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"crypto/rand"
"encoding/base64"
"io"
"os"
"regexp"
"testing"

Expand All @@ -32,6 +33,23 @@ func TestVersion(t *testing.T) {
}
}

func TestVersionMatchesTag(t *testing.T) {
tag := os.Getenv("TRAVIS_TAG")
if tag == "" {
t.SkipNow()
}
// We expect a tag of the form vX.Y.Z. If that's not the case,
// we need someone to have a look. So fail if first letter is not
// a `v`
if tag[0] != 'v' {
t.Fatalf("Expect tag to start with `v`, tag is: %s", tag)
}
// Strip the `v` from the tag for the version comparison.
if Version != tag[1:] {
t.Fatalf("Version (%s) does not match tag (%s)", Version, tag[1:])
}
}

func TestEncode(t *testing.T) {
var rawKey [32]byte

Expand Down

0 comments on commit f1930e1

Please sign in to comment.