From fa5d3b696d78f482d3c08f6a90af6b8facdec92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=BF=B5=E6=94=B6?= Date: Sat, 15 Oct 2016 10:37:38 +0800 Subject: [PATCH 1/2] Update .travis.yml --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 34bd01b..cf75456 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1,9 @@ language: go -go_import_path: gopkg.in/oauth2.v3 \ No newline at end of file +sudo: false +go_import_path: gopkg.in/oauth2.v3 +go: + - 1.6 +before_install: + - go get github.com/mattn/goveralls +script: + - $HOME/gopath/bin/goveralls -service=travis-ci From b0db84caf7f484b2eead2870833a944bde9ee011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=BF=B5=E6=94=B6?= Date: Sat, 15 Oct 2016 10:44:23 +0800 Subject: [PATCH 2/2] Add Coverage --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c5c1bc..83f0e52 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > An open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications. -[![License][License-Image]][License-Url] [![ReportCard][ReportCard-Image]][ReportCard-Url] [![Build][Build-Status-Image]][Build-Status-Url] [![GoDoc][GoDoc-Image]][GoDoc-Url] [![Release][Release-Image]][Release-Url] +[![License][License-Image]][License-Url] [![ReportCard][ReportCard-Image]][ReportCard-Url] [![Build][Build-Status-Image]][Build-Status-Url] [![Coverage][Coverage-Image]][Coverage-Url] [![GoDoc][GoDoc-Image]][GoDoc-Url] [![Release][Release-Image]][Release-Url] ## Protocol Flow @@ -135,4 +135,6 @@ Copyright (c) 2016 Lyric [ReportCard-Url]: https://goreportcard.com/report/gopkg.in/oauth2.v3 [ReportCard-Image]: https://goreportcard.com/badge/gopkg.in/oauth2.v3 [GoDoc-Url]: https://godoc.org/gopkg.in/oauth2.v3 -[GoDoc-Image]: https://godoc.org/gopkg.in/oauth2.v3?status.svg \ No newline at end of file +[GoDoc-Image]: https://godoc.org/gopkg.in/oauth2.v3?status.svg +[Coverage-Url]: https://coveralls.io/github/go-oauth2/oauth2?branch=master +[Coverage-Image]: https://coveralls.io/repos/github/go-oauth2/oauth2/badge.svg?branch=master