Skip to content

Commit

Permalink
Add Travis CI and coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Feb 9, 2018
1 parent 2112450 commit 552a139
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 552a139

Please sign in to comment.