Skip to content

Commit 98e846e

Browse files
committed
Add Travis and code coverage.
1 parent 5bec58c commit 98e846e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: go
2+
3+
sudo: false
4+
5+
go:
6+
- tip
7+
8+
before_install:
9+
- go get github.com/mattn/goveralls
10+
11+
script:
12+
- $HOME/gopath/bin/goveralls -service=travis-ci

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
JSON Adapter [![Godoc](https://godoc.org/github.com/casbin/json-adapter?status.svg)](https://godoc.org/github.com/casbin/json-adapter)
1+
JSON Adapter [![Build Status](https://travis-ci.org/casbin/json-adapter.svg?branch=master)](https://travis-ci.org/casbin/json-adapter) [![Coverage Status](https://coveralls.io/repos/github/casbin/json-adapter/badge.svg?branch=master)](https://coveralls.io/github/casbin/json-adapter?branch=master) [![Godoc](https://godoc.org/github.com/casbin/json-adapter?status.svg)](https://godoc.org/github.com/casbin/json-adapter)
22
====
33

44
JSON Adapter is the [JSON (JavaScript Object Notation)](https://www.json.org/) adapter for [Casbin](https://github.com/casbin/casbin). With this library, Casbin can load policy from JSON string or save policy to it.

0 commit comments

Comments
 (0)