From 82a58f487de6426d6ae552df84a12007405ca962 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 19 Jun 2019 17:40:11 +0800 Subject: [PATCH] add drone and update README --- .drone.yml | 30 ++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..dac9d08c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,30 @@ +workspace: + base: /go + path: src/xorm.io/core + +clone: + git: + image: plugins/git:next + depth: 50 + tags: true + +matrix: + GO_VERSION: + - 1.9 + - 1.10 + - 1.11 + - 1.12 + +pipeline: + test: + image: golang:${GO_VERSION} + environment: + GOPROXY: https://goproxy.cn + commands: + - go get -u golang.org/x/lint/golint + - go get -u github.com/stretchr/testify/assert + - go get -u github.com/go-xorm/sqlfiddle + - golint ./... + - go test -v -race -coverprofile=coverage.txt -covermode=atomic + when: + event: [ push, tag, pull_request ] \ No newline at end of file diff --git a/README.md b/README.md index 09b72c74..2277163a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Core is a lightweight wrapper of sql.DB. -[![CircleCI](https://circleci.com/gh/go-xorm/core/tree/master.svg?style=svg)](https://circleci.com/gh/go-xorm/core/tree/master) +[![Build Status](https://drone.gitea.com/api/badges/xorm/core/status.svg)](https://drone.gitea.com/xorm/core) # Open ```Go