diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..0ae1df59 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: go + +go: + - 1.8.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 e85e8d1a..bd8a9c4a 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,15 @@ [![GoDoc](https://godoc.org/github.com/dtapps/GoLibrary?status.svg)](https://godoc.org/github.com/dtapps/GoLibrary) [![GoDoc](https://godoc.org/gitee.com/dtapps/GoLibrary?status.svg)](https://godoc.org/gitee.com/dtapps/GoLibrary) [![GitHub release](https://img.shields.io/github/release/dtapps/GoLibrary.svg)](https://github.com/dtapps/GoLibrary/releases/latest) +[![codecov](https://codecov.io/gh/dtapps/GoLibrary/branch/master/graph/badge.svg)](https://codecov.io/gh/dtapps/GoLibrary) +[![Build Status](https://travis-ci.org/dtapps/GoLibrary.svg?branch=master)](https://travis-ci.org/dtapps/GoLibrary) +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%dtapps%2FGoLibrary.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%dtapps%2FGoLibrary?ref=badge_shield) -### 安装 + +## License +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2dtapps%2FGoLibrary.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2dtapps%2FGoLibrary?ref=badge_large) + +## Install ```Importing go get gitee.com/dtapps/GoLibrary ```