Skip to content

Commit 20e3677

Browse files
committed
add travis
1 parent 763a0a3 commit 20e3677

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: go
2+
sudo: false
3+
go_import_path: gopkg.in/go-oauth2/mysql.v3
4+
go:
5+
- 1.7
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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MySQL Storage for [OAuth 2.0](https://github.com/go-oauth2/oauth2)
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
## Install
66

@@ -37,6 +37,10 @@ func main() {
3737
Copyright (c) 2018 Lyric
3838
```
3939

40+
[Build-Status-Url]: https://travis-ci.org/go-oauth2/mysql
41+
[Build-Status-Image]: https://travis-ci.org/go-oauth2/mysql.svg?branch=master
42+
[codecov-url]: https://codecov.io/gh/go-oauth2/mysql
43+
[codecov-image]: https://codecov.io/gh/go-oauth2/mysql/branch/master/graph/badge.svg
4044
[reportcard-url]: https://goreportcard.com/report/gopkg.in/go-oauth2/mysql.v3
4145
[reportcard-image]: https://goreportcard.com/badge/gopkg.in/go-oauth2/mysql.v3
4246
[godoc-url]: https://godoc.org/gopkg.in/go-oauth2/mysql.v3

mysql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
const (
15-
dsn = "root:123456@tcp(127.0.0.1:3306)/myapp_test?charset=utf8"
15+
dsn = "root:@tcp(127.0.0.1:3306)/myapp_test?charset=utf8"
1616
)
1717

1818
func TestTokenStore(t *testing.T) {

0 commit comments

Comments
 (0)