Skip to content

Commit

Permalink
add travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricTian committed May 8, 2018
1 parent 10d6016 commit c1a34c2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: go
sudo: false
go_import_path: gopkg.in/go-session/redis.v1
go:
- 1.7
services:
- redis-server
script:
- $HOME/gopath/bin/goveralls -service=travis-ci
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A redis-based session store
[![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]
[![Build][Build-Status-Image]][Build-Status-Url] [![Coverage][Coverage-Image]][Coverage-Url] [![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]

## Quick Start

Expand Down Expand Up @@ -89,6 +89,10 @@ $ ./server

Copyright (c) 2018 Lyric

[Build-Status-Url]: https://travis-ci.org/go-session/redis
[Build-Status-Image]: https://travis-ci.org/go-session/redis.svg?branch=master
[Coverage-Url]: https://coveralls.io/github/go-session/redis?branch=master
[Coverage-Image]: https://coveralls.io/repos/github/go-session/redis/badge.svg?branch=master
[reportcard-url]: https://goreportcard.com/report/gopkg.in/go-session/redis.v1
[reportcard-image]: https://goreportcard.com/badge/gopkg.in/go-session/redis.v1
[godoc-url]: https://godoc.org/gopkg.in/go-session/redis.v1
Expand Down
2 changes: 1 addition & 1 deletion redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const (
addr = "127.0.0.1:6379"
addr = "localhost:6379"
db = 15
)

Expand Down

0 comments on commit c1a34c2

Please sign in to comment.