xorm/.drone.yml

42 lines
915 B
YAML
Raw Normal View History

2019-06-19 09:40:11 +00:00
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
2019-06-20 01:13:29 +00:00
- go get -u github.com/go-sql-driver/mysql
2019-06-20 01:19:10 +00:00
- go get -u github.com/mattn/go-sqlite3
2019-07-15 13:42:17 +00:00
- go vet
2019-07-15 08:27:12 +00:00
- go test -v -race -coverprofile=coverage.txt -covermode=atomic -dbConn="root:@tcp(mysql:3306)/core_test?charset=utf8mb4"
2019-06-20 03:36:10 +00:00
when:
event: [ push, tag, pull_request ]
services:
mysql:
image: mysql:5.7
environment:
- MYSQL_DATABASE=core_test
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
2019-06-19 09:40:11 +00:00
when:
event: [ push, tag, pull_request ]