From ee5d50b8f6af4a3d1fb6c0324aea5400cae6cd3f Mon Sep 17 00:00:00 2001 From: ElvinChan Date: Sun, 2 Sep 2018 09:14:14 +0800 Subject: [PATCH] Add TravisCI --- .travis.yml | 17 +++++++++++++++++ README.md | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2d7e7e4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: go + +go: + - 1.8.x + - 1.9.x + - 1.10.x + - 1.11.x + - tip + +before_install: + - go get -t -v ./... + +script: + - go test -race -coverprofile=coverage.txt -covermode=atomic + +after_success: + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index 36e0dac..edebdbf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # echoswagger Swagger UI generator for Echo framework + +[![Go Report Card](https://goreportcard.com/badge/github.com/elvinchan/echoswagger)](https://goreportcard.com/report/github.com/elvinchan/echoswagger) + +[![Build Status](https://travis-ci.org/elvinchan/echoswagger.svg?branch=master)](https://travis-ci.org/elvinchan/echoswagger)