forked from ClangBuiltLinux/continuous-integration
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
222 lines (222 loc) · 7.45 KB
/
.travis.yml
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
language: cpp
jobs:
include:
# linux
- name: "ARCH=arm32_v5 LLVM=1 LLVM_IAS=1"
env: ARCH=arm32_v5 LLVM=1 LLVM_IAS=1
- name: "ARCH=arm32_v6"
env: ARCH=arm32_v6
- name: "ARCH=arm32_v7 LLVM=1"
env: ARCH=arm32_v7 LLVM=1
- name: "ARCH=arm64 LLVM=1 LLVM_IAS=1"
env: ARCH=arm64 LLVM=1 LLVM_IAS=1
- name: "ARCH=mips"
env: ARCH=mips
- name: "ARCH=mipsel LD=ld.lld"
env: ARCH=mipsel LD=ld.lld
- name: "ARCH=ppc32"
env: ARCH=ppc32
- name: "ARCH=ppc64"
env: ARCH=ppc64
- name: "ARCH=ppc64le LD=ld.lld"
env: ARCH=ppc64le LD=ld.lld
- name: "ARCH=riscv BOOT=false LLVM_IAS=1"
env: ARCH=riscv BOOT=false LLVM_IAS=1
- name: "ARCH=s390 BOOT=false"
env: ARCH=s390 BOOT=false
- name: "ARCH=x86 LLVM=1 LLVM_IAS=1"
env: ARCH=x86 LLVM=1 LLVM_IAS=1
- name: "ARCH=x86_64 LLVM=1 LLVM_IAS=1"
env: ARCH=x86_64 LLVM=1 LLVM_IAS=1
# linux (cron only)
#
# linux-next (cron only)
- name: "ARCH=arm32_v5 LLVM=1 LLVM_IAS=1 REPO=linux-next"
env: ARCH=arm32_v5 LLVM=1 LLVM_IAS=1 REPO=linux-next
if: type = cron
- name: "ARCH=arm32_v6 REPO=linux-next"
env: ARCH=arm32_v6 REPO=linux-next
if: type = cron
- name: "ARCH=arm32_v7 LLVM=1 REPO=linux-next"
env: ARCH=arm32_v7 LLVM=1 REPO=linux-next
if: type = cron
- name: "ARCH=arm64 LLVM=1 REPO=linux-next"
env: ARCH=arm64 LLVM=1 REPO=linux-next
if: type = cron
- name: "ARCH=mips REPO=linux-next"
env: ARCH=mips REPO=linux-next
if: type = cron
- name: "ARCH=mipsel LD=ld.lld REPO=linux-next"
env: ARCH=mipsel LD=ld.lld REPO=linux-next
if: type = cron
- name: "ARCH=ppc32 REPO=linux-next"
env: ARCH=ppc32 REPO=linux-next
if: type = cron
- name: "ARCH=ppc64 REPO=linux-next"
env: ARCH=ppc64 REPO=linux-next
if: type = cron
- name: "ARCH=ppc64le LD=ld.lld REPO=linux-next"
env: ARCH=ppc64le LD=ld.lld REPO=linux-next
if: type = cron
- name: "ARCH=riscv BOOT=false LLVM_IAS=1 REPO=linux-next"
env: ARCH=riscv BOOT=false LLVM_IAS=1 REPO=linux-next
if: type = cron
- name: "ARCH=s390 BOOT=false REPO=linux-next"
env: ARCH=s390 REPO=linux-next BOOT=false
if: type = cron
- name: "ARCH=x86 LLVM=1 LLVM_IAS=1 REPO=linux-next"
env: ARCH=x86 LLVM=1 LLVM_IAS=1 REPO=linux-next
if: type = cron
- name: "ARCH=x86_64 LLVM=1 LLVM_IAS=1 REPO=linux-next"
env: ARCH=x86_64 LLVM=1 LLVM_IAS=1 REPO=linux-next
if: type = cron
# stable
- name: "ARCH=arm32_v7 LLVM=1 REPO=5.4"
env: ARCH=arm32_v7 LLVM=1 REPO=5.4
if: type = cron
- name: "ARCH=arm64 LLVM=1 REPO=5.4"
env: ARCH=arm64 LLVM=1 REPO=5.4
if: type = cron
- name: "ARCH=mips LD=ld.lld REPO=5.4"
env: ARCH=mips LD=ld.lld REPO=5.4
if: type = cron
- name: "ARCH=mipsel LD=ld.lld REPO=5.4"
env: ARCH=mipsel LD=ld.lld REPO=5.4
if: type = cron
- name: "ARCH=ppc32 REPO=5.4"
env: ARCH=ppc32 REPO=5.4
if: type = cron
- name: "ARCH=x86_64 LLVM=1 REPO=5.4"
env: ARCH=x86_64 LLVM=1 REPO=5.4
if: type = cron
- name: "ARCH=arm32_v7 LLVM=1 REPO=4.19"
env: ARCH=arm32_v7 LLVM=1 REPO=4.19
if: type = cron
- name: "ARCH=arm64 LLVM=1 REPO=4.19"
env: ARCH=arm64 LLVM=1 REPO=4.19
if: type = cron
- name: "ARCH=ppc64le REPO=4.19"
env: ARCH=ppc64le REPO=4.19
if: type = cron
- name: "ARCH=x86_64 LLVM=1 REPO=4.19"
env: ARCH=x86_64 LLVM=1 REPO=4.19
if: type = cron
- name: "ARCH=arm32_v7 REPO=4.14"
env: ARCH=arm32_v7 REPO=4.14
if: type = cron
- name: "ARCH=arm64 LD=ld.lld REPO=4.14"
env: ARCH=arm64 LD=ld.lld REPO=4.14
if: type = cron
- name: "ARCH=ppc64le REPO=4.14"
env: ARCH=ppc64le REPO=4.14
if: type = cron
- name: "ARCH=x86_64 LD=ld.lld REPO=4.14"
env: ARCH=x86_64 LD=ld.lld REPO=4.14
if: type = cron
- name: "ARCH=arm32_v7 REPO=4.9"
env: ARCH=arm32_v7 REPO=4.9
if: type = cron
- name: "ARCH=arm64 REPO=4.9"
env: ARCH=arm64 REPO=4.9
if: type = cron
- name: "ARCH=x86_64 LD=ld.lld REPO=4.9"
env: ARCH=x86_64 LD=ld.lld REPO=4.9
if: type = cron
- name: "ARCH=arm64 REPO=4.4"
env: ARCH=arm64 REPO=4.4
if: type = cron
- name: "ARCH=x86_64 LD=ld.lld REPO=4.4"
env: ARCH=x86_64 LD=ld.lld REPO=4.4
if: type = cron
# kernel/common
- name: "ARCH=arm64 REPO=android-4.9-q"
env: ARCH=arm64 REPO=android-4.9-q
if: type = cron
- name: "ARCH=arm64 REPO=android-4.14-stable"
env: ARCH=arm64 REPO=android-4.14-stable
if: type = cron
- name: "ARCH=arm64 LLVM=1 REPO=android-4.19-stable"
env: ARCH=arm64 LLVM=1 REPO=android-4.19-stable
if: type = cron
- name: "ARCH=arm64 LLVM=1 REPO=android12-5.4"
env: ARCH=arm64 LLVM=1 REPO=android12-5.4
if: type = cron
- name: "ARCH=arm64 LLVM=1 LLVM_IAS=1 REPO=android-mainline"
env: ARCH=arm64 LLVM=1 LLVM_IAS=1 REPO=android-mainline
if: type = cron
- name: "ARCH=x86_64 LD=ld.lld REPO=android-4.9-q"
env: ARCH=x86_64 LD=ld.lld REPO=android-4.9-q
if: type = cron
- name: "ARCH=x86_64 LD=ld.lld REPO=android-4.14-stable"
env: ARCH=x86_64 LD=ld.lld REPO=android-4.14-stable
if: type = cron
- name: "ARCH=x86_64 LLVM=1 REPO=android-4.19-stable"
env: ARCH=x86_64 LLVM=1 REPO=android-4.19-stable
if: type = cron
- name: "ARCH=x86_64 LLVM=1 REPO=android12-5.4"
env: ARCH=x86_64 LLVM=1 REPO=android12-5.4
if: type = cron
- name: "ARCH=x86_64 LLVM=1 LLVM_IAS=1 REPO=android-mainline"
env: ARCH=x86_64 LLVM=1 LLVM_IAS=1 REPO=android-mainline
if: type = cron
# linux with stable LLVM/Clang
- name: "ARCH=arm32_v5 LD=ld.lld LLVM_VERSION=11"
env: ARCH=arm32_v5 LD=ld.lld LLVM_VERSION=11
if: type = cron
- name: "ARCH=arm32_v6 LLVM_VERSION=11"
env: ARCH=arm32_v6 LLVM_VERSION=11
if: type = cron
- name: "ARCH=arm32_v7 LD=ld.lld LLVM_VERSION=11"
env: ARCH=arm32_v7 LD=ld.lld LLVM_VERSION=11
if: type = cron
- name: "ARCH=arm64 LLVM_VERSION=11"
env: ARCH=arm64 LLVM_VERSION=11
if: type = cron
- name: "ARCH=mips LLVM_VERSION=11"
env: ARCH=mips LLVM_VERSION=11
if: type = cron
- name: "ARCH=mipsel LLVM_VERSION=11"
env: ARCH=mipsel LLVM_VERSION=11
if: type = cron
- name: "ARCH=ppc32 LLVM_VERSION=11"
env: ARCH=ppc32 LLVM_VERSION=11
if: type = cron
- name: "ARCH=ppc64 LLVM_VERSION=11"
env: ARCH=ppc64 LLVM_VERSION=11
if: type = cron
- name: "ARCH=ppc64le LLVM_VERSION=11"
env: ARCH=ppc64le LLVM_VERSION=11
if: type = cron
- name: "ARCH=x86_64 LLVM_VERSION=11"
env: ARCH=x86_64 LLVM_VERSION=11
if: type = cron
compiler: gcc
os: linux
cache:
directories:
- .ccache
services:
- docker
script:
- |
docker run \
--env ARCH=${ARCH} \
--env LD=${LD} \
--env LLVM=${LLVM} \
--env LLVM_IAS=${LLVM_IAS} \
--env REPO=${REPO} \
--env BOOT=${BOOT} \
--rm \
--workdir /travis \
--volume ${TRAVIS_BUILD_DIR}:/travis \
clangbuiltlinux/ubuntu:llvm${LLVM_VERSION:-12}-latest /bin/bash -c './env-setup.sh && ./driver.sh && ccache -s'
after_script:
- sleep 1
notifications:
email:
recipients:
on_success: never
on_failure: always
if: type = cron