Skip to content

Commit c1a34c2

Browse files
committed
add travis build
1 parent 10d6016 commit c1a34c2

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: go
2+
sudo: false
3+
go_import_path: gopkg.in/go-session/redis.v1
4+
go:
5+
- 1.7
6+
services:
7+
- redis-server
8+
script:
9+
- $HOME/gopath/bin/goveralls -service=travis-ci

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> A redis-based session store
44
5-
[![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]
5+
[![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]
66

77
## Quick Start
88

@@ -89,6 +89,10 @@ $ ./server
8989

9090
Copyright (c) 2018 Lyric
9191

92+
[Build-Status-Url]: https://travis-ci.org/go-session/redis
93+
[Build-Status-Image]: https://travis-ci.org/go-session/redis.svg?branch=master
94+
[Coverage-Url]: https://coveralls.io/github/go-session/redis?branch=master
95+
[Coverage-Image]: https://coveralls.io/repos/github/go-session/redis/badge.svg?branch=master
9296
[reportcard-url]: https://goreportcard.com/report/gopkg.in/go-session/redis.v1
9397
[reportcard-image]: https://goreportcard.com/badge/gopkg.in/go-session/redis.v1
9498
[godoc-url]: https://godoc.org/gopkg.in/go-session/redis.v1

redis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
const (
12-
addr = "127.0.0.1:6379"
12+
addr = "localhost:6379"
1313
db = 15
1414
)
1515

0 commit comments

Comments
 (0)