.drone.yml 3.9 KB
Newer Older
L
liuyq-617 已提交
1 2 3

---
kind: pipeline
4
name: test_arm64_bionic
L
liuyq-617 已提交
5 6 7 8 9 10

platform:
  os: linux
  arch: arm64
steps:
- name: build
11
  image: arm64v8/ubuntu:bionic
L
liuyq-617 已提交
12 13
  commands:
  - apt-get update
L
udpate  
liuyq-617 已提交
14
  - apt-get install -y cmake  git build-essential golang-go
15
  - git submodule update --init --recursive
L
liuyq-617 已提交
16 17 18
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch64 > /dev/null
L
liuyq-617 已提交
19
  - make -j4 
20 21 22
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
23 24 25 26
  when:
    branch:
    - develop
    - master
27
    - 2.0
L
liuyq-617 已提交
28 29
---
kind: pipeline
30 31 32 33 34 35 36 37 38 39 40 41
name: test_arm64_focal

platform:
  os: linux
  arch: arm64

steps:
- name: build
  image: arm64v8/ubuntu:focal
  commands:
  - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
  - apt-get update 
L
udpate  
liuyq-617 已提交
42
  - apt-get install -y -qq git cmake build-essential golang-go
43
  - git submodule update --init --recursive
44 45 46
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch64 > /dev/null
L
liuyq-617 已提交
47
  - make -j4 
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
  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:
68
  - yum install -y gcc gcc-c++ make cmake git golang
69
  - git submodule update --init --recursive
70 71 72
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch64 > /dev/null
L
liuyq-617 已提交
73
  - make -j4 
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
  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:
94
  - dnf install -y gcc gcc-c++ make cmake epel-release git libarchive golang
95
  - git submodule update --init --recursive
96 97 98
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch64 > /dev/null
L
liuyq-617 已提交
99
  - make -j4 
100 101 102 103 104 105 106 107 108 109 110
  trigger:
    event:
      - pull_request
  when:
    branch:
    - develop
    - master
    - 2.0
---
kind: pipeline
name: test_arm_bionic
L
liuyq-617 已提交
111 112 113 114 115 116 117

platform:
  os: linux
  arch: arm

steps:
- name: build
L
update  
liuyq-617 已提交
118
  image: arm32v7/ubuntu:bionic
L
liuyq-617 已提交
119 120
  commands:
  - apt-get update
L
udpate  
liuyq-617 已提交
121
  - apt-get install -y cmake build-essential golang-go git
122
  - git submodule update --init --recursive
L
liuyq-617 已提交
123 124 125
  - mkdir debug
  - cd debug
  - cmake .. -DCPUTYPE=aarch32 > /dev/null
L
liuyq-617 已提交
126
  - make -j4 
127 128 129
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
130 131 132 133
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
134
    - 2.0
L
liuyq-617 已提交
135 136 137 138 139 140 141 142 143 144 145 146 147
---
kind: pipeline
name: build_trusty

platform:
  os: linux
  arch: amd64

steps:
- name: build
  image: ubuntu:trusty
  commands:
  - apt-get update
148
  - apt-get install -y gcc cmake3 build-essential git binutils-2.26 golang-go
149
  - git submodule update --init --recursive
L
liuyq-617 已提交
150 151 152
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
153
  - make -j4 
154 155 156
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
157 158 159 160
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
161
    - 2.0
L
liuyq-617 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174
---
kind: pipeline
name: build_xenial

platform:
  os: linux
  arch: amd64

steps:
- name: build
  image: ubuntu:xenial
  commands:
  - apt-get update
L
udpate  
liuyq-617 已提交
175
  - apt-get install -y gcc cmake build-essential golang-go git
176
  - git submodule update --init --recursive
L
liuyq-617 已提交
177 178 179
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
180
  - make -j4 
181 182 183
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
184 185 186 187
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
188
    - 2.0
L
liuyq-617 已提交
189 190 191 192 193 194 195 196 197 198 199 200
---
kind: pipeline
name: build_bionic
platform:
  os: linux
  arch: amd64

steps:
- name: build
  image: ubuntu:bionic
  commands:
  - apt-get update
L
udpate  
liuyq-617 已提交
201
  - apt-get install -y gcc cmake build-essential golang-go git
202
  - git submodule update --init --recursive
L
liuyq-617 已提交
203 204 205
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
206
  - make -j4 
207 208 209
  trigger:
    event:
      - pull_request
L
liuyq-617 已提交
210 211 212 213
  when:
    branch:
    - develop
    - master
L
liuyq-617 已提交
214
    - 2.0
L
liuyq-617 已提交
215 216 217 218 219 220 221 222 223 224 225
---
kind: pipeline
name: build_centos7
platform:
  os: linux
  arch: amd64

steps:
- name: build
  image: ansible/centos7-ansible
  commands:
L
udpate  
liuyq-617 已提交
226
  - yum install -y gcc gcc-c++ make cmake golang git
227
  - git submodule update --init --recursive
L
liuyq-617 已提交
228 229 230
  - mkdir debug
  - cd debug
  - cmake .. 
L
liuyq-617 已提交
231
  - make -j4 
L
liuyq-617 已提交
232 233 234 235 236 237
  trigger:
    event:
      - pull_request
  when:
    branch:
    - develop
238
    - master
L
liuyq-617 已提交
239
    - 2.0