---
kind: pipeline
name: go1.10
workspace:
base: /go
path: src/xorm.io/builder
steps:
- name: test
pull: default
image: golang:1.10
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 vet
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
when:
event:
- push
- tag
- pull_request
name: go1.11
image: golang:1.11
environment:
GOPROXY: https://goproxy.cn
GO111MODULE: "on"
name: go1.12
image: golang:1.12
name: go1.13
image: golang:1.13