Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

Commit

Permalink
add drone ci (#36)
Browse files Browse the repository at this point in the history
* add drone ci

* add parallel piplines

* remove group

* remove comment

* remove comment

* remove wrong codecov config

* parallel drone

* remove parallel

* use matrix on drone

* drone add codecov

* circleci -> gitci.cn
  • Loading branch information
lunny authored Sep 29, 2018
1 parent 395bcf3 commit ef80bec
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 31 deletions.
30 changes: 0 additions & 30 deletions .circleci/config.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
workspace:
base: /go
path: src/github.com/go-xorm/builder

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 -u github.com/golang/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 ]

codecov:
image: robertstettner/drone-codecov
group: build
secrets: [ codecov_token ]
files:
- coverage.txt
when:
event: [ push, pull_request ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SQL builder

[![CircleCI](https://circleci.com/gh/go-xorm/builder/tree/master.svg?style=svg)](https://circleci.com/gh/go-xorm/builder/tree/master) [![codecov](https://codecov.io/gh/go-xorm/builder/branch/master/graph/badge.svg)](https://codecov.io/gh/go-xorm/builder)
[![GitCI.cn](https://gitci.cn/api/badges/go-xorm/builder/status.svg)](https://gitci.cn/go-xorm/builder) [![codecov](https://codecov.io/gh/go-xorm/builder/branch/master/graph/badge.svg)](https://codecov.io/gh/go-xorm/builder)
[![](https://goreportcard.com/badge/github.com/go-xorm/builder)](https://goreportcard.com/report/github.com/go-xorm/builder)

Package builder is a lightweight and fast SQL builder for Go and XORM.
Expand Down

0 comments on commit ef80bec

Please sign in to comment.