diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..68237ac --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +language: go + +sudo: false +dist: trusty + +go: +- 1.x +- 1.7.x +- 1.8.x +- 1.9.x +- master + +before_install: +- find "${GOPATH%%:*}" -name '*.a' -delete +- rm -rf "${GOPATH%%:*}/src/golang.org" +- go get golang.org/x/tools/cover +- go get golang.org/x/tools/cmd/cover + +script: +- go test -race -coverprofile=coverage.txt -covermode=atomic + +after_success: +- bash <(curl -s "https://codecov.io/bash") diff --git a/README.md b/README.md index e452e89..40dcc27 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # JWT Middleware +[![Build Status](https://travis-ci.org/mfuentesg/go-jwtmiddleware.svg?branch=master)](https://travis-ci.org/mfuentesg/go-jwtmiddleware) +[![codecov](https://codecov.io/gh/mfuentesg/go-jwtmiddleware/branch/master/graph/badge.svg)](https://codecov.io/gh/mfuentesg/go-jwtmiddleware) + This package has as purpose will help you to check the validness of any token based on [JWT spec](https://tools.ietf.org/html/rfc7519). ## Getting started diff --git a/go.mod b/go.mod index f2f3b35..cd19e51 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/mfuentesg/jwtmiddleware +module github.com/mfuentesg/go-jwtmiddleware require github.com/dgrijalva/jwt-go v3.2.0+incompatible