Skip to content

Commit abbe87d

Browse files
committed
Add travis
1 parent ca3b6fd commit abbe87d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: go
2+
3+
before_install:
4+
- sudo add-apt-repository ppa:chris-lea/redis-server
5+
- sudo apt-get -qq update
6+
- sudo apt-get install -y redis-server

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ Redis Token Store
33

44
[![GoDoc](https://godoc.org/github.com/go-oauth2/redis?status.svg)](https://godoc.org/github.com/go-oauth2/redis)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/go-oauth2/redis)](https://goreportcard.com/report/github.com/go-oauth2/redis)
6+
[![Build Status](https://travis-ci.org/go-oauth2/redis.svg?branch=master)](https://travis-ci.org/go-oauth2/redis)
67

78
Install
89
-------
910

1011
``` bash
11-
$ go get -v github.com/go-oauth2/redis
12+
$ go get -u -v github.com/go-oauth2/redis
1213
```
1314

1415
Usage
@@ -26,7 +27,7 @@ func main() {
2627
manager := manage.NewDefaultManager()
2728
// use redis store
2829
manager.MustTokenStorage(redis.NewStore(&redis.Config{
29-
Addr: "192.168.33.70:6379",
30+
Addr: "127.0.0.1:6379",
3031
}))
3132

3233
// ...

redis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
func TestStore(t *testing.T) {
1414
Convey("Test redis store", t, func() {
1515
cfg := &redis.Config{
16-
Addr: "192.168.33.70:6379",
16+
Addr: "127.0.0.1:6379",
1717
}
1818
store, err := redis.NewStore(cfg)
1919
So(err, ShouldBeNil)

0 commit comments

Comments
 (0)