Commit 19ee6270 authored by khoipham's avatar khoipham

Add code coverage

parent ba514ad2
language: go language: go
sudo: false
go: go:
- 1.12.x - 1.12.x
- 1.13.x - 1.13.x
...@@ -6,4 +7,7 @@ env: ...@@ -6,4 +7,7 @@ env:
- PG_CONN=postgresql://postgres:@localhost:5432/postgres?sslmode=disable - PG_CONN=postgresql://postgres:@localhost:5432/postgres?sslmode=disable
services: services:
- postgresql - postgresql
scripts: go test github.com/casbin/casbin-pg-adapter before_install:
- go get github.com/mattn/goveralls
script:
- $HOME/gopath/bin/goveralls -service=travis-ci
[![Build Status](https://travis-ci.org/casbin/casbin-pg-adapter.svg?branch=master)](https://travis-ci.org/casbin/casbin-pg-adapter)
# Go-pg Adapter # Go-pg Adapter
[![Build Status](https://travis-ci.org/casbin/casbin-pg-adapter.svg?branch=master)](https://travis-ci.org/casbin/casbin-pg-adapter)
[![Coverage Status](https://coveralls.io/repos/github/casbin/casbin-pg-adapter/badge.svg?branch=master)](https://coveralls.io/github/casbin/casbin-pg-adapter?branch=master)
Go-pg Adapter is the [Go-pg](https://github.com/go-pg/pg) adapter for [Casbin](https://github.com/casbin/casbin). With this library, Casbin can load policy from PostgreSQL or save policy to it. Go-pg Adapter is the [Go-pg](https://github.com/go-pg/pg) adapter for [Casbin](https://github.com/casbin/casbin). With this library, Casbin can load policy from PostgreSQL or save policy to it.
## Installation ## Installation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment