From 898db00a63f20ce213198117ce6b663c293c93c3 Mon Sep 17 00:00:00 2001 From: lyric Date: Thu, 17 May 2018 11:30:15 +0800 Subject: add travis build --- .travis.yml | 9 +++++++++ README.md | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..fa89548 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: go +sudo: false +go_import_path: github.com/go-session/echo-session +go: + - 1.9 +before_install: + - go get github.com/mattn/goveralls +script: + - $HOME/gopath/bin/goveralls -service=travis-ci diff --git a/README.md b/README.md index 28c2235..3b46d4d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Session middleware for [Echo](https://github.com/labstack/echo) -[![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 @@ -73,6 +73,10 @@ $ ./server Copyright (c) 2018 Lyric +[Build-Status-Url]: https://travis-ci.org/go-session/echo-session +[Build-Status-Image]: https://travis-ci.org/go-session/echo-session.svg?branch=master +[Coverage-Url]: https://coveralls.io/github/go-session/echo-session?branch=master +[Coverage-Image]: https://coveralls.io/repos/github/go-session/echo-session/badge.svg?branch=master [reportcard-url]: https://goreportcard.com/report/github.com/go-session/echo-session [reportcard-image]: https://goreportcard.com/badge/github.com/go-session/echo-session [godoc-url]: https://godoc.org/github.com/go-session/echo-session -- cgit v1.2.3