]>
Commit | Line | Data |
---|---|---|
044722d5 AB |
1 | # The current Travis default is a container based 14.04 Trust on EC2 |
2 | # Additional builds with specific requirements for a full VM need to | |
3 | # be added as additional matrix: entries later on | |
197be697 | 4 | |
692d162c | 5 | sudo: false |
044722d5 | 6 | dist: trusty |
fe863ab9 AB |
7 | language: c |
8 | python: | |
8e73a3c5 | 9 | - "2.6" |
fe863ab9 AB |
10 | compiler: |
11 | - gcc | |
4c33d42d | 12 | cache: ccache |
197be697 DB |
13 | |
14 | ||
692d162c AB |
15 | addons: |
16 | apt: | |
17 | packages: | |
32265288 | 18 | # Build dependencies |
692d162c AB |
19 | - libaio-dev |
20 | - libattr1-dev | |
21 | - libbrlapi-dev | |
22 | - libcap-ng-dev | |
7524a39d | 23 | - libgcc-4.8-dev |
692d162c AB |
24 | - libgnutls-dev |
25 | - libgtk-3-dev | |
26 | - libiscsi-dev | |
27 | - liblttng-ust-dev | |
28 | - libncurses5-dev | |
d83414e1 | 29 | - libnfs-dev |
692d162c AB |
30 | - libnss3-dev |
31 | - libpixman-1-dev | |
32 | - libpng12-dev | |
33 | - librados-dev | |
34 | - libsdl1.2-dev | |
35 | - libseccomp-dev | |
36 | - libspice-protocol-dev | |
37 | - libspice-server-dev | |
38 | - libssh2-1-dev | |
39 | - liburcu-dev | |
40 | - libusb-1.0-0-dev | |
41 | - libvte-2.90-dev | |
42 | - sparse | |
43 | - uuid-dev | |
0708e647 | 44 | - gcovr |
692d162c | 45 | |
197be697 | 46 | |
cb4c2536 PK |
47 | # The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu |
48 | # to prevent IRC notifications from forks. This was created using: | |
49 | # $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu" | |
39d16d29 AB |
50 | notifications: |
51 | irc: | |
52 | channels: | |
cb4c2536 | 53 | - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM=" |
39d16d29 AB |
54 | on_success: change |
55 | on_failure: always | |
197be697 DB |
56 | |
57 | ||
fe863ab9 AB |
58 | env: |
59 | global: | |
ebf2ff65 PMD |
60 | - SRC_DIR="." |
61 | - BUILD_DIR="." | |
01337fbd | 62 | - TEST_CMD="make check" |
f4089dc8 | 63 | - MAKEFLAGS="-j3" |
197be697 DB |
64 | |
65 | ||
cb021cfe AB |
66 | git: |
67 | # we want to do this ourselves | |
68 | submodules: false | |
197be697 DB |
69 | |
70 | ||
fe863ab9 | 71 | before_install: |
1d002037 AB |
72 | - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi |
73 | - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi | |
ebdfb610 | 74 | - git submodule update --init --recursive capstone dtc ui/keycodemapdb |
eebf2940 | 75 | before_script: |
ebf2ff65 PMD |
76 | - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} |
77 | - ${SRC_DIR}/configure ${CONFIG} || { cat config.log && exit 1; } | |
eebf2940 | 78 | script: |
f4089dc8 | 79 | - make ${MAKEFLAGS} && ${TEST_CMD} |
197be697 DB |
80 | |
81 | ||
fe863ab9 | 82 | matrix: |
fe863ab9 | 83 | include: |
3e094234 DB |
84 | - env: CONFIG="--disable-system" |
85 | ||
86 | ||
87 | - env: CONFIG="--disable-user" | |
88 | ||
89 | ||
90 | - env: CONFIG="--enable-debug --enable-debug-tcg" | |
91 | ||
92 | ||
93 | - env: CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --disable-user" | |
94 | ||
95 | ||
96 | - env: CONFIG="--enable-modules --disable-linux-user" | |
97 | ||
98 | ||
99 | - env: CONFIG="--with-coroutine=ucontext --disable-linux-user" | |
100 | ||
101 | ||
102 | - env: CONFIG="--with-coroutine=sigaltstack --disable-linux-user" | |
103 | ||
104 | ||
ebf2ff65 PMD |
105 | # Test out-of-tree builds |
106 | - env: CONFIG="--enable-debug --enable-debug-tcg" | |
107 | BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.." | |
197be697 DB |
108 | |
109 | ||
ae6d692d AB |
110 | # Test with Clang for compile portability (Travis uses clang-5.0) |
111 | - env: CONFIG="--disable-system" | |
112 | compiler: clang | |
197be697 DB |
113 | |
114 | ||
ae6d692d | 115 | - env: CONFIG="--disable-user" |
d9a6b013 | 116 | compiler: clang |
197be697 DB |
117 | |
118 | ||
6c933291 | 119 | # gprof/gcov are GCC features |
73d99c11 | 120 | - env: CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" |
0708e647 AB |
121 | after_success: |
122 | - ${SRC_DIR}/scripts/travis/coverage-summary.sh | |
fe863ab9 | 123 | compiler: gcc |
197be697 DB |
124 | |
125 | ||
6c933291 AB |
126 | # We manually include builds which we disable "make check" for |
127 | - env: CONFIG="--enable-debug --enable-tcg-interpreter" | |
01337fbd | 128 | TEST_CMD="" |
fe863ab9 | 129 | compiler: gcc |
197be697 DB |
130 | |
131 | ||
f8309de9 AB |
132 | # We don't need to exercise every backend with every front-end |
133 | - env: CONFIG="--enable-trace-backends=log,simple,syslog --disable-system" | |
01337fbd | 134 | TEST_CMD="" |
fe863ab9 | 135 | compiler: gcc |
197be697 DB |
136 | |
137 | ||
f8309de9 | 138 | - env: CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu" |
01337fbd | 139 | TEST_CMD="" |
86c3b20a | 140 | compiler: gcc |
197be697 DB |
141 | |
142 | ||
f8309de9 | 143 | - env: CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu" |
15552dbb AB |
144 | TEST_CMD="" |
145 | compiler: gcc | |
197be697 DB |
146 | |
147 | ||
97837314 PB |
148 | - env: CONFIG="--disable-tcg" |
149 | TEST_CMD="" | |
150 | compiler: gcc | |
197be697 DB |
151 | |
152 | ||
adcf9683 AB |
153 | # MacOSX builds |
154 | - env: CONFIG="--target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" | |
1d002037 | 155 | os: osx |
adcf9683 AB |
156 | osx_image: xcode9.4 |
157 | compiler: clang | |
197be697 DB |
158 | |
159 | ||
adcf9683 AB |
160 | - env: CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu" |
161 | os: osx | |
162 | osx_image: xcode10 | |
1d002037 | 163 | compiler: clang |
197be697 DB |
164 | |
165 | ||
ae6d692d AB |
166 | # Python builds |
167 | - env: CONFIG="--target-list=x86_64-softmmu" | |
8e73a3c5 DB |
168 | python: |
169 | - "3.0" | |
197be697 DB |
170 | |
171 | ||
ae6d692d | 172 | - env: CONFIG="--target-list=x86_64-softmmu" |
8e73a3c5 DB |
173 | python: |
174 | - "3.6" | |
197be697 DB |
175 | |
176 | ||
aa983ff6 CR |
177 | # Acceptance (Functional) tests |
178 | - env: CONFIG="--python=/usr/bin/python3 --target-list=x86_64-softmmu" | |
179 | TEST_CMD="make AVOCADO_SHOW=app check-acceptance" | |
180 | addons: | |
181 | apt: | |
182 | packages: | |
183 | - python3-pip | |
184 | - python3.4-venv | |
197be697 DB |
185 | |
186 | ||
32265288 AB |
187 | # Using newer GCC with sanitizers |
188 | - addons: | |
189 | apt: | |
ac07ffc6 | 190 | update: true |
32265288 AB |
191 | sources: |
192 | # PPAs for newer toolchains | |
193 | - ubuntu-toolchain-r-test | |
194 | packages: | |
195 | # Extra toolchains | |
ac07ffc6 AB |
196 | - gcc-7 |
197 | - g++-7 | |
32265288 AB |
198 | # Build dependencies |
199 | - libaio-dev | |
200 | - libattr1-dev | |
201 | - libbrlapi-dev | |
202 | - libcap-ng-dev | |
203 | - libgnutls-dev | |
204 | - libgtk-3-dev | |
205 | - libiscsi-dev | |
206 | - liblttng-ust-dev | |
207 | - libnfs-dev | |
208 | - libncurses5-dev | |
209 | - libnss3-dev | |
210 | - libpixman-1-dev | |
211 | - libpng12-dev | |
212 | - librados-dev | |
213 | - libsdl1.2-dev | |
214 | - libseccomp-dev | |
215 | - libspice-protocol-dev | |
216 | - libspice-server-dev | |
217 | - libssh2-1-dev | |
218 | - liburcu-dev | |
219 | - libusb-1.0-0-dev | |
220 | - libvte-2.90-dev | |
221 | - sparse | |
222 | - uuid-dev | |
223 | language: generic | |
224 | compiler: none | |
225 | env: | |
ac07ffc6 AB |
226 | - COMPILER_NAME=gcc CXX=g++-7 CC=gcc-7 |
227 | - CONFIG="--cc=gcc-7 --cxx=g++-7 --disable-pie --disable-linux-user" | |
32265288 AB |
228 | - TEST_CMD="" |
229 | before_script: | |
6a259f8d | 230 | - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || { cat config.log && exit 1; } |
197be697 DB |
231 | |
232 | ||
65b26da4 AB |
233 | - env: |
234 | - CONFIG="--disable-system --disable-docs" | |
235 | - TEST_CMD="make check-tcg" | |
236 | script: | |
237 | - make ${MAKEFLAGS} && ${TEST_CMD} ${MAKEFLAGS} | |
238 | sudo: required | |
239 | dist: trusty | |
240 | compiler: gcc |