aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/xorm.io/builder/.drone.yml
blob: 557dbf66f08f9f2a9f57aa80dda6fd768019fb64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
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

---
kind: pipeline
name: go1.11

steps:
- name: test
  pull: default
  image: golang:1.11
  commands:
  - go get -u golang.org/x/lint/golint
  - golint ./...
  - go vet
  - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  environment:
    GOPROXY: https://goproxy.cn
    GO111MODULE: "on"
  when:
    event:
    - push
    - tag
    - pull_request

---
kind: pipeline
name: go1.12

steps:
- name: test
  pull: default
  image: golang:1.12
  commands:
  - go get -u golang.org/x/lint/golint
  - golint ./...
  - go vet
  - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  environment:
    GOPROXY: https://goproxy.cn
    GO111MODULE: "on"
  when:
    event:
    - push
    - tag
    - pull_request

---
kind: pipeline
name: go1.13

steps:
- name: test
  pull: default
  image: golang:1.13
  commands:
  - go get -u golang.org/x/lint/golint
  - golint ./...
  - go vet
  - go test -v -race -coverprofile=coverage.txt -covermode=atomic
  environment:
    GOPROXY: https://goproxy.cn
    GO111MODULE: "on"
  when:
    event:
    - push
    - tag
    - pull_request