diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..be7f634 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: go + +sudo: false + +go: + - tip + +before_install: + - go get github.com/mattn/goveralls + +script: + - $HOME/gopath/bin/goveralls -service=travis-ci \ No newline at end of file diff --git a/README.md b/README.md index 47ab319..dce2726 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Session Role Manager [![Godoc](https://godoc.org/github.com/casbin/session-role-manager?status.svg)](https://godoc.org/github.com/casbin/session-role-manager) +Session Role Manager [![Build Status](https://travis-ci.org/casbin/session-role-manager.svg?branch=master)](https://travis-ci.org/casbin/session-role-manager) [![Coverage Status](https://coveralls.io/repos/github/casbin/session-role-manager/badge.svg?branch=master)](https://coveralls.io/github/casbin/session-role-manager?branch=master) [![Godoc](https://godoc.org/github.com/casbin/session-role-manager?status.svg)](https://godoc.org/github.com/casbin/session-role-manager) ==== Session Role Manager is the [Session-based](https://en.wikipedia.org/wiki/Session_(computer_science)) role manager for [Casbin](https://github.com/casbin/casbin). With this library, Casbin can load session-based role hierarchy (user-role mapping) from Casbin policy or save policy to it. The session is only active in the specified time range.