add drone ci

This commit is contained in:
Lunny Xiao 2018-09-07 11:08:43 +08:00
parent 7a9249de33
commit 9c3efb7afe
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 59 additions and 0 deletions

59
.drone.yml Normal file
View File

@ -0,0 +1,59 @@
workspace:
base: /go
path: src/github.com/go-xorm/xorm
clone:
git:
image: plugins/git:next
depth: 50
tags: true
pipeline:
test:
image: golang:1.8
#group: testing
#pull: true
commands:
- go get -t -d -v ./...
- go get -u github.com/go-xorm/core
- go get -u github.com/go-xorm/builder
- go build -v
when:
event: [ push, pull_request ]
test1:
image: golang:1.9
#group: testing
#pull: true
commands:
- go get -t -d -v ./...
- go get -u github.com/go-xorm/core
- go get -u github.com/go-xorm/builder
- go build -v
when:
event: [ push, pull_request ]
test2:
image: golang:1.10
#group: testing
#pull: true
commands:
- go get -t -d -v ./...
- go get -u github.com/go-xorm/core
- go get -u github.com/go-xorm/builder
- go build -v
when:
event: [ push, pull_request ]
test3:
image: golang:1.11
#group: testing
#pull: true
commands:
- go get -t -d -v ./...
- go get -u github.com/go-xorm/core
- go get -u github.com/go-xorm/builder
- go build -v
when:
event: [ push, pull_request ]