.drone.yml 4.9 KB
Newer Older
L
liuyq-617 已提交
1 2 3 4 5 6 7 8 9
---
kind: pipeline
name: test_amd64

platform:
  os: linux
  arch: amd64

steps:
10 11
- name: build
  image: gcc
L
test  
liuyq-617 已提交
12 13
  commands:
  - apt-get update
14
  - apt-get install -y cmake build-essential 
15
  - git submodule update --init --recursive
L
test  
liuyq-617 已提交
16 17 18
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
19
  - make -j4 
20 21 22
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
23 24 25 26
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
27
    - 2.0
L
liuyq-617 已提交
28 29
---
kind: pipeline
30
name: test_arm64_bionic
L
liuyq-617 已提交
31 32 33 34 35

platform:
  os: linux
  arch: arm64
steps:
36 37 38 39 40
- name: submodules
  image: alpine/git
  commands:
  - git submodule init
  - git submodule update --recursive --remote
L
liuyq-617 已提交
41
- name: build
42
  image: arm64v8/ubuntu:bionic
L
liuyq-617 已提交
43 44
  commands:
  - apt-get update
45
  - apt-get install -y cmake build-essential golang-go
46
  - git submodule update --init --recursive
L
liuyq-617 已提交
47 48 49
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch64 > /dev/null
L
liuyq-617 已提交
50
  - make -j4 
51 52 53
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
54 55 56 57
  when:
    branch:
    - develop
    - master
58
    - 2.0
L
liuyq-617 已提交
59 60
---
kind: pipeline
61 62 63 64 65 66 67
name: test_arm64_focal

platform:
  os: linux
  arch: arm64

steps:
68 69 70 71 72
- name: submodules
  image: alpine/git
  commands:
  - git submodule init
  - git submodule update --recursive --remote
73 74 75 76 77
- name: build
  image: arm64v8/ubuntu:focal
  commands:
  - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
  - apt-get update 
78
  - apt-get install -y -qq cmake build-essential golang-go
79
  - git submodule update --init --recursive
80 81 82
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch64 > /dev/null
L
liuyq-617 已提交
83
  - make -j4 
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
  trigger:
    event:
      - pull_request
  when:
    branch:
    - develop
    - master
    - 2.0
---
kind: pipeline
name: test_arm64_centos7

platform:
  os: linux
  arch: arm64

steps:
- name: build
  image: arm64v8/centos:7
  commands:
104
  - yum install -y gcc gcc-c++ make cmake git golang
105
  - git submodule update --init --recursive
106 107 108
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch64 > /dev/null
L
liuyq-617 已提交
109
  - make -j4 
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
  trigger:
    event:
      - pull_request
  when:
    branch:
    - develop
    - master
    - 2.0
---
kind: pipeline
name: test_arm64_centos8

platform:
  os: linux
  arch: arm64

steps:
- name: build
  image: arm64v8/centos:8
  commands:
130
  - dnf install -y gcc gcc-c++ make cmake epel-release git libarchive golang
131
  - git submodule update --init --recursive
132 133 134
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch64 > /dev/null
L
liuyq-617 已提交
135
  - make -j4 
136 137 138 139 140 141 142 143 144 145 146
  trigger:
    event:
      - pull_request
  when:
    branch:
    - develop
    - master
    - 2.0
---
kind: pipeline
name: test_arm_bionic
L
liuyq-617 已提交
147 148 149 150 151 152

platform:
  os: linux
  arch: arm

steps:
153 154 155 156 157
- name: submodules
  image: alpine/git
  commands:
  - git submodule init
  - git submodule update --recursive --remote
L
liuyq-617 已提交
158
- name: build
L
update  
liuyq-617 已提交
159
  image: arm32v7/ubuntu:bionic
L
liuyq-617 已提交
160 161
  commands:
  - apt-get update
162
  - apt-get install -y cmake build-essential golang-go
163
  - git submodule update --init --recursive
L
liuyq-617 已提交
164 165 166
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch32 > /dev/null
L
liuyq-617 已提交
167
  - make -j4 
168 169 170
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
171 172 173 174
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
175
    - 2.0
L
liuyq-617 已提交
176 177 178 179 180 181 182 183 184 185 186 187 188
---
kind: pipeline
name: build_trusty

platform:
  os: linux
  arch: amd64

steps:
- name: build
  image: ubuntu:trusty
  commands:
  - apt-get update
189
  - apt-get install -y gcc cmake3 build-essential git binutils-2.26 golang-go
190
  - git submodule update --init --recursive
L
liuyq-617 已提交
191 192 193
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
194
  - make -j4 
195 196 197
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
198 199 200 201
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
202
    - 2.0
L
liuyq-617 已提交
203 204 205 206 207 208 209 210 211
---
kind: pipeline
name: build_xenial

platform:
  os: linux
  arch: amd64

steps:
212 213 214 215 216
- name: submodules
  image: alpine/git
  commands:
  - git submodule init
  - git submodule update --recursive --remote
L
liuyq-617 已提交
217 218 219 220
- name: build
  image: ubuntu:xenial
  commands:
  - apt-get update
221
  - apt-get install -y gcc cmake build-essential golang-go
222
  - git submodule update --init --recursive
L
liuyq-617 已提交
223 224 225
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
226
  - make -j4 
227 228 229
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
230 231 232 233
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
234
    - 2.0
L
liuyq-617 已提交
235 236 237 238 239 240 241 242
---
kind: pipeline
name: build_bionic
platform:
  os: linux
  arch: amd64

steps:
243 244 245 246 247
- name: submodules
  image: alpine/git
  commands:
  - git submodule init
  - git submodule update --recursive --remote
L
liuyq-617 已提交
248 249 250 251
- name: build
  image: ubuntu:bionic
  commands:
  - apt-get update
252
  - apt-get install -y gcc cmake build-essential golang-go
253
  - git submodule update --init --recursive
L
liuyq-617 已提交
254 255 256
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
257
  - make -j4 
258 259 260
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
261 262 263 264
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
265
    - 2.0
L
liuyq-617 已提交
266 267 268 269 270 271 272 273
---
kind: pipeline
name: build_centos7
platform:
  os: linux
  arch: amd64

steps:
274 275 276 277 278
- name: submodules
  image: alpine/git
  commands:
  - git submodule init
  - git submodule update --recursive --remote
L
liuyq-617 已提交
279 280 281
- name: build
  image: ansible/centos7-ansible
  commands:
282
  - yum install -y gcc gcc-c++ make cmake golang
283
  - git submodule update --init --recursive
L
liuyq-617 已提交
284 285 286
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
287
  - make -j4 
L
liuyq-617 已提交
288 289 290 291 292 293
  trigger:
    event:
      - pull_request
  when:
    branch:
    - develop
294
    - master
L
liuyq-617 已提交
295
    - 2.0