Skip to content

Commit

Permalink
update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricTian committed Jun 21, 2018
1 parent 9fbc94d commit 2f8ec52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE myapp_test;'
- go get github.com/mattn/goveralls
- go get -t -v ./...
script:
- $HOME/gopath/bin/goveralls -service=travis-ci
- go test -race -coverprofile=coverage.txt -covermode=atomic

after_success:
- bash <(curl -s https://codecov.io/bash)
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# MySQL Hook for [Logrus](https://github.com/sirupsen/logrus)
# An asynchronous MySQL Hook for [Logrus](https://github.com/sirupsen/logrus)

> A mysql-based logrus hook
[![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]
[![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]

## Quick Start

Expand Down Expand Up @@ -50,7 +48,7 @@ func main() {
}
defer db.Close()

tableName := "e_log"
tableName := "t_log"
mysqlHook := mysqlhook.Default(db, tableName)
defer db.Exec(fmt.Sprintf("drop table %s", tableName))

Expand Down Expand Up @@ -79,8 +77,8 @@ func main() {

[Build-Status-Url]: https://travis-ci.org/LyricTian/logrus-mysql-hook
[Build-Status-Image]: https://travis-ci.org/LyricTian/logrus-mysql-hook.svg?branch=master
[Coverage-Url]: https://coveralls.io/github/LyricTian/logrus-mysql-hook?branch=master
[Coverage-Image]: https://coveralls.io/repos/github/LyricTian/logrus-mysql-hook/badge.svg?branch=master
[codecov-url]: https://codecov.io/gh/LyricTian/logrus-mysql-hook
[codecov-image]: https://codecov.io/gh/LyricTian/logrus-mysql-hook/branch/master/graph/badge.svg
[reportcard-url]: https://goreportcard.com/report/github.com/LyricTian/logrus-mysql-hook
[reportcard-image]: https://goreportcard.com/badge/github.com/LyricTian/logrus-mysql-hook
[godoc-url]: https://godoc.org/github.com/LyricTian/logrus-mysql-hook
Expand Down

0 comments on commit 2f8ec52

Please sign in to comment.