diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..515c958 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: go +go: + - 1.16.2 + -tip +sudo: required +os: + - linux + - osx +notifications: + email: lanliddd.2007@163.com +before_install: + - go mod tidy + +script: + - echo "run" + - go test -race -coverprofile=coverage.txt -covermode=atomic + - go test -v ./... + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 121ba1e..82c1613 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,12 @@

+![Go version](https://img.shields.io/badge/go-%3E%3D1.16-9cf) +[![Project version](https://img.shields.io/badge/version-1.0.2-green.svg)](https://github.com/duke-git/lancet/releases) +[![GoDoc](https://godoc.org/github.com//duke-git/lancet?status.svg)](https://pkg.go.dev/github.com/duke-git/lancet) +[![Go Report Card](https://goreportcard.com/badge/github.com/duke-git/lancet)](https://goreportcard.com/report/github.com/duke-git/lancet) +[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/duke-git/lancet/blob/main/LICENSE) +
English | [简体中文](./README_zh-CN.md)