Skip to content

Commit ca1d352

Browse files
committed
add travis
1 parent 31b30e2 commit ca1d352

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: go
2+
sudo: false
3+
go_import_path: github.com/go-session/mysql
4+
go:
5+
- 1.9
6+
services:
7+
- mysql
8+
before_install:
9+
- mysql -e 'CREATE DATABASE myapp_test;'
10+
- go get -t -v ./...
11+
12+
script:
13+
- go test -race -coverprofile=coverage.txt -covermode=atomic
14+
15+
after_success:
16+
- bash <(curl -s https://codecov.io/bash)

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MySQL store for [Session](https://github.com/go-session/session)
22

3-
[![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]
3+
[![Build][Build-Status-Image]][Build-Status-Url] [![Codecov][codecov-image]][codecov-url] [![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]
44

55
## Quick Start
66

@@ -85,6 +85,10 @@ $ ./server
8585

8686
Copyright (c) 2018 Lyric
8787

88+
[Build-Status-Url]: https://travis-ci.org/go-session/mysql
89+
[Build-Status-Image]: https://travis-ci.org/go-session/mysql.svg?branch=master
90+
[codecov-url]: https://codecov.io/gh/go-session/mysql
91+
[codecov-image]: https://codecov.io/gh/go-session/mysql/branch/master/graph/badge.svg
8892
[reportcard-url]: https://goreportcard.com/report/github.com/go-session/mysql
8993
[reportcard-image]: https://goreportcard.com/badge/github.com/go-session/mysql
9094
[godoc-url]: https://godoc.org/github.com/go-session/mysql

mysql_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
const (
12-
dsn = "root:123456@tcp(127.0.0.1:3306)/myapp_test?charset=utf8"
12+
dsn = "root:@tcp(127.0.0.1:3306)/myapp_test?charset=utf8"
1313
)
1414

1515
func TestStore(t *testing.T) {

0 commit comments

Comments
 (0)