diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..1cff9b0 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +workspace: + base: /go + path: src/github.com/lunny/tango + +clone: + git: + image: plugins/git:next + depth: 50 + tags: true + +matrix: + GO_VERSION: + - 1.8 + - 1.9 + - 1.10 + - 1.11 + +pipeline: + test: + image: golang:${GO_VERSION} + commands: + - go get -t -d -v ./... + - go build -v + - go test -v -race -coverprofile=coverage.txt -covermode=atomic + when: + event: [ push, pull_request ] + + coverage: + image: robertstettner/drone-codecov + secrets: [ codecov_token2 ] + files: + - coverage.txt + when: + event: [ push, pull_request ] + branch: [ master ] \ No newline at end of file diff --git a/README.md b/README.md index 2800dc3..95719e4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Tango [简体中文](README_CN.md) ======================= -[![CircleCI](https://circleci.com/gh/lunny/tango.svg?style=shield)](https://circleci.com/gh/lunny/tango) [![codecov](https://codecov.io/gh/lunny/tango/branch/master/graph/badge.svg)](https://codecov.io/gh/lunny/tango) +[![GitCI](https://gitci.cn/api/badges/lunny/tango/status.svg)](https://gitci.cn/gh/lunny/tango) [![codecov](https://codecov.io/gh/lunny/tango/branch/master/graph/badge.svg)](https://codecov.io/gh/lunny/tango) [![](https://goreportcard.com/badge/github.com/lunny/tango)](https://goreportcard.com/report/github.com/lunny/tango) [![Join the chat at https://img.shields.io/discord/323705316027924491.svg](https://img.shields.io/discord/323705316027924491.svg)](https://discord.gg/7Ckxjwu) diff --git a/README_CN.md b/README_CN.md index cb3b2ea..a4508e5 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,4 +1,4 @@ -Tango [![CircleCI](https://circleci.com/gh/lunny/tango.svg?style=shield)](https://circleci.com/gh/lunny/tango) [![codecov](https://codecov.io/gh/lunny/tango/branch/master/graph/badge.svg)](https://codecov.io/gh/lunny/tango) +Tango [![GitCI](https://gitci.cn/api/badges/lunny/tango/status.svg)](https://gitci.cn/gh/lunny/tango) [![codecov](https://codecov.io/gh/lunny/tango/branch/master/graph/badge.svg)](https://codecov.io/gh/lunny/tango) [![](https://goreportcard.com/badge/github.com/lunny/tango)](https://goreportcard.com/report/github.com/lunny/tango) [![Join the chat at https://img.shields.io/discord/323705316027924491.svg](https://img.shields.io/discord/323705316027924491.svg)](https://discord.gg/7Ckxjwu) [English](README.md) diff --git a/circle.yml b/circle.yml deleted file mode 100644 index e0a2729..0000000 --- a/circle.yml +++ /dev/null @@ -1,12 +0,0 @@ -dependencies: - override: - # './...' is a relative pattern which means all subdirectories - - go get -t -d -v ./... - - go build -v - -test: - override: - # './...' is a relative pattern which means all subdirectories - - go test -v -race -coverprofile=coverage.txt -covermode=atomic - post: - - bash <(curl -s https://codecov.io/bash) \ No newline at end of file