diff --git a/.travis.yml b/.travis.yml index 293b5a7..c20db11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,8 +22,8 @@ before_script: - staticcheck ./... script: - mkdir cov - - if [ "$V" == "v2" ]; then GO_MOD_FILE="go_test.mod"; else GO_MOD_FILE="go.mod"; fi - - go test -modfile=$GO_MOD_FILE -v -race -covermode=atomic -coverprofile=./cov/coverage.out -coverpkg=github.com/nats-io/jwt . + - if [ "$V" == "v2" ]; then GO_MOD_FILE="go_test.mod"; PKG_EXT="/v2"; else GO_MOD_FILE="go.mod"; PKG_EXT=""; fi + - go test -modfile=$GO_MOD_FILE -v -race -covermode=atomic -coverprofile=./cov/coverage.out -coverpkg=github.com/nats-io/jwt${PKG_EXT} . - gocovmerge ./cov/*.out > coverage.out deploy: diff --git a/v2/header.go b/v2/header.go index f69647d..3dece6a 100644 --- a/v2/header.go +++ b/v2/header.go @@ -23,7 +23,7 @@ import ( const ( // Version is semantic version. - Version = "2.0.3" + Version = "2.1.0" // TokenTypeJwt is the JWT token type supported JWT tokens // encoded and decoded by this library