blob: 95be6ec59fc8db5c6f4f4cec2449a1f5abb23fa3 [file] [log] [blame]
Alex Bennée044722d2018-05-30 09:04:04 +01001# 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
Alex Bennée692d1622016-01-14 19:21:16 +00004sudo: false
Alex Bennée044722d2018-05-30 09:04:04 +01005dist: trusty
Alex Bennéefe863ab2013-11-06 10:43:37 +00006language: c
7python:
Daniel P. Berrange8e73a3c2018-01-16 13:42:16 +00008 - "2.6"
Alex Bennéefe863ab2013-11-06 10:43:37 +00009compiler:
10 - gcc
Alex Bennée4c33d422016-01-31 17:29:46 +000011cache: ccache
Alex Bennée692d1622016-01-14 19:21:16 +000012addons:
13 apt:
14 packages:
Alex Bennée32265282016-09-30 22:31:03 +010015 # Build dependencies
Alex Bennée692d1622016-01-14 19:21:16 +000016 - libaio-dev
17 - libattr1-dev
18 - libbrlapi-dev
19 - libcap-ng-dev
Philippe Mathieu-Daudé7524a392018-02-12 15:46:50 -030020 - libgcc-4.8-dev
Alex Bennée692d1622016-01-14 19:21:16 +000021 - libgnutls-dev
22 - libgtk-3-dev
23 - libiscsi-dev
24 - liblttng-ust-dev
25 - libncurses5-dev
Marc-André Lureaud83414e2018-01-16 16:11:52 +010026 - libnfs-dev
Alex Bennée692d1622016-01-14 19:21:16 +000027 - libnss3-dev
28 - libpixman-1-dev
29 - libpng12-dev
30 - librados-dev
31 - libsdl1.2-dev
32 - libseccomp-dev
33 - libspice-protocol-dev
34 - libspice-server-dev
35 - libssh2-1-dev
36 - liburcu-dev
37 - libusb-1.0-0-dev
38 - libvte-2.90-dev
39 - sparse
40 - uuid-dev
Alex Bennée0708e642018-06-20 12:00:07 +010041 - gcovr
Alex Bennée692d1622016-01-14 19:21:16 +000042
Pranith Kumarcb4c2532016-06-27 14:13:22 -040043# The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu
44# to prevent IRC notifications from forks. This was created using:
45# $ travis encrypt -r "qemu/qemu" "irc.oftc.net#qemu"
Alex Bennée39d16d22014-03-12 14:13:53 +000046notifications:
47 irc:
48 channels:
Pranith Kumarcb4c2532016-06-27 14:13:22 -040049 - secure: "F7GDRgjuOo5IUyRLqSkmDL7kvdU4UcH3Lm/W2db2JnDHTGCqgEdaYEYKciyCLZ57vOTsTsOgesN8iUT7hNHBd1KWKjZe9KDTZWppWRYVwAwQMzVeSOsbbU4tRoJ6Pp+3qhH1Z0eGYR9ZgKYAoTumDFgSAYRp4IscKS8jkoedOqM="
Alex Bennée39d16d22014-03-12 14:13:53 +000050 on_success: change
51 on_failure: always
Alex Bennéefe863ab2013-11-06 10:43:37 +000052env:
53 global:
Philippe Mathieu-Daudéebf2ff62018-06-21 09:26:37 -030054 - SRC_DIR="."
55 - BUILD_DIR="."
Alex Bennée01337fb2016-01-28 10:21:15 +000056 - TEST_CMD="make check"
Paolo Bonzinif4089dc2017-07-17 21:31:30 -030057 - MAKEFLAGS="-j3"
Alex Bennéefe863ab2013-11-06 10:43:37 +000058 matrix:
Alex Bennéead20a092018-03-13 14:20:55 +000059 - CONFIG="--disable-system"
60 - CONFIG="--disable-user"
Alex Bennée52dd1962018-03-13 14:18:06 +000061 - CONFIG="--enable-debug --enable-debug-tcg"
Alex Bennée0b438fa2018-03-13 15:24:22 +000062 - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --disable-user"
Alex Bennée04200a12018-02-07 15:19:25 +000063 - CONFIG="--enable-modules --disable-linux-user"
64 - CONFIG="--with-coroutine=ucontext --disable-linux-user"
65 - CONFIG="--with-coroutine=sigaltstack --disable-linux-user"
Alex Bennéecb021cf2014-09-24 11:13:55 +010066git:
67 # we want to do this ourselves
68 submodules: false
Alex Bennéefe863ab2013-11-06 10:43:37 +000069before_install:
Alex Bennée1d002032016-03-21 19:54:57 +000070 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
71 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext glib pixman ; fi
Philippe Mathieu-Daudéebdfb612018-06-21 23:15:46 -030072 - git submodule update --init --recursive capstone dtc ui/keycodemapdb
Alex Bennéeeebf2942014-09-24 11:13:54 +010073before_script:
Philippe Mathieu-Daudéebf2ff62018-06-21 09:26:37 -030074 - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
75 - ${SRC_DIR}/configure ${CONFIG} || { cat config.log && exit 1; }
Alex Bennéeeebf2942014-09-24 11:13:54 +010076script:
Paolo Bonzinif4089dc2017-07-17 21:31:30 -030077 - make ${MAKEFLAGS} && ${TEST_CMD}
Alex Bennéefe863ab2013-11-06 10:43:37 +000078matrix:
Alex Bennéefe863ab2013-11-06 10:43:37 +000079 include:
Philippe Mathieu-Daudéebf2ff62018-06-21 09:26:37 -030080 # Test out-of-tree builds
81 - env: CONFIG="--enable-debug --enable-debug-tcg"
82 BUILD_DIR="out-of-tree/build/dir" SRC_DIR="../../.."
Alex Bennéeae6d6922018-05-29 18:14:04 +010083 # Test with Clang for compile portability (Travis uses clang-5.0)
84 - env: CONFIG="--disable-system"
85 compiler: clang
86 - env: CONFIG="--disable-user"
Daniel P. Berranged9a6b012016-10-27 15:23:45 +020087 compiler: clang
Alex Bennée6c933292016-03-15 16:12:58 +000088 # gprof/gcov are GCC features
Alex Bennée73d99c12018-06-12 14:24:20 +010089 - 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"
Alex Bennée0708e642018-06-20 12:00:07 +010090 after_success:
91 - ${SRC_DIR}/scripts/travis/coverage-summary.sh
Alex Bennée6c933292016-03-15 16:12:58 +000092 compiler: gcc
93 # We manually include builds which we disable "make check" for
94 - env: CONFIG="--enable-debug --enable-tcg-interpreter"
Alex Bennée01337fb2016-01-28 10:21:15 +000095 TEST_CMD=""
Alex Bennéefe863ab2013-11-06 10:43:37 +000096 compiler: gcc
Alex Bennéef8309de2018-06-14 11:28:20 +010097 # We don't need to exercise every backend with every front-end
98 - env: CONFIG="--enable-trace-backends=log,simple,syslog --disable-system"
Alex Bennée01337fb2016-01-28 10:21:15 +000099 TEST_CMD=""
Alex Bennéefe863ab2013-11-06 10:43:37 +0000100 compiler: gcc
Alex Bennéef8309de2018-06-14 11:28:20 +0100101 - env: CONFIG="--enable-trace-backends=ftrace --target-list=x86_64-softmmu"
Alex Bennée01337fb2016-01-28 10:21:15 +0000102 TEST_CMD=""
Alex Bennéefe863ab2013-11-06 10:43:37 +0000103 compiler: gcc
Alex Bennéef8309de2018-06-14 11:28:20 +0100104 - env: CONFIG="--enable-trace-backends=ust --target-list=x86_64-softmmu"
Alex Bennée01337fb2016-01-28 10:21:15 +0000105 TEST_CMD=""
Alex Bennée86c3b202014-03-12 14:13:51 +0000106 compiler: gcc
Paolo Bonzini97837312017-07-14 11:30:16 +0200107 - env: CONFIG="--disable-tcg"
108 TEST_CMD=""
109 compiler: gcc
Alex Bennée1d002032016-03-21 19:54:57 +0000110 - env: CONFIG=""
111 os: osx
112 compiler: clang
Alex Bennéeae6d6922018-05-29 18:14:04 +0100113 # Python builds
114 - env: CONFIG="--target-list=x86_64-softmmu"
Daniel P. Berrange8e73a3c2018-01-16 13:42:16 +0000115 python:
116 - "3.0"
Alex Bennéeae6d6922018-05-29 18:14:04 +0100117 - env: CONFIG="--target-list=x86_64-softmmu"
Daniel P. Berrange8e73a3c2018-01-16 13:42:16 +0000118 python:
119 - "3.6"
Alex Bennée32265282016-09-30 22:31:03 +0100120 # Using newer GCC with sanitizers
121 - addons:
122 apt:
Alex Bennéeac07ffc2018-05-30 09:09:31 +0100123 update: true
Alex Bennée32265282016-09-30 22:31:03 +0100124 sources:
125 # PPAs for newer toolchains
126 - ubuntu-toolchain-r-test
127 packages:
128 # Extra toolchains
Alex Bennéeac07ffc2018-05-30 09:09:31 +0100129 - gcc-7
130 - g++-7
Alex Bennée32265282016-09-30 22:31:03 +0100131 # Build dependencies
132 - libaio-dev
133 - libattr1-dev
134 - libbrlapi-dev
135 - libcap-ng-dev
136 - libgnutls-dev
137 - libgtk-3-dev
138 - libiscsi-dev
139 - liblttng-ust-dev
140 - libnfs-dev
141 - libncurses5-dev
142 - libnss3-dev
143 - libpixman-1-dev
144 - libpng12-dev
145 - librados-dev
146 - libsdl1.2-dev
147 - libseccomp-dev
148 - libspice-protocol-dev
149 - libspice-server-dev
150 - libssh2-1-dev
151 - liburcu-dev
152 - libusb-1.0-0-dev
153 - libvte-2.90-dev
154 - sparse
155 - uuid-dev
156 language: generic
157 compiler: none
158 env:
Alex Bennéeac07ffc2018-05-30 09:09:31 +0100159 - COMPILER_NAME=gcc CXX=g++-7 CC=gcc-7
160 - CONFIG="--cc=gcc-7 --cxx=g++-7 --disable-pie --disable-linux-user"
Alex Bennée32265282016-09-30 22:31:03 +0100161 - TEST_CMD=""
162 before_script:
Daniel P. Berrangé6a259f82018-06-12 09:28:23 +0100163 - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || { cat config.log && exit 1; }
Alex Bennée65b26da2018-04-18 16:55:37 +0100164 - env:
165 - CONFIG="--disable-system --disable-docs"
166 - TEST_CMD="make check-tcg"
167 script:
168 - make ${MAKEFLAGS} && ${TEST_CMD} ${MAKEFLAGS}
169 sudo: required
170 dist: trusty
171 compiler: gcc