xref: /openbmc/qemu/.travis.yml (revision d38ea87a)
1language: c
2python:
3  - "2.4"
4compiler:
5  - gcc
6  - clang
7notifications:
8  irc:
9    channels:
10      - "irc.oftc.net#qemu"
11    on_success: change
12    on_failure: always
13env:
14  global:
15    - TEST_CMD=""
16    - EXTRA_CONFIG=""
17    # Development packages, EXTRA_PKGS saved for additional builds
18    - CORE_PKGS="libusb-1.0-0-dev libiscsi-dev librados-dev libncurses5-dev"
19    - NET_PKGS="libseccomp-dev libgnutls-dev libssh2-1-dev  libspice-server-dev libspice-protocol-dev libnss3-dev"
20    - GUI_PKGS="libgtk-3-dev libvte-2.90-dev libsdl1.2-dev libpng12-dev libpixman-1-dev"
21    - EXTRA_PKGS=""
22  matrix:
23    # Group major targets together with their linux-user counterparts
24    - TARGETS=alpha-softmmu,alpha-linux-user
25    - TARGETS=arm-softmmu,arm-linux-user,armeb-linux-user,aarch64-softmmu,aarch64-linux-user
26    - TARGETS=cris-softmmu,cris-linux-user
27    - TARGETS=i386-softmmu,i386-linux-user,x86_64-softmmu,x86_64-linux-user
28    - TARGETS=m68k-softmmu,m68k-linux-user
29    - TARGETS=microblaze-softmmu,microblazeel-softmmu,microblaze-linux-user,microblazeel-linux-user
30    - TARGETS=mips-softmmu,mips64-softmmu,mips64el-softmmu,mipsel-softmmu
31    - TARGETS=mips-linux-user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,mipsn32-linux-user,mipsn32el-linux-user
32    - TARGETS=or32-softmmu,or32-linux-user
33    - TARGETS=ppc-softmmu,ppc64-softmmu,ppcemb-softmmu,ppc-linux-user,ppc64-linux-user,ppc64abi32-linux-user,ppc64le-linux-user
34    - TARGETS=s390x-softmmu,s390x-linux-user
35    - TARGETS=sh4-softmmu,sh4eb-softmmu,sh4-linux-user sh4eb-linux-user
36    - TARGETS=sparc-softmmu,sparc64-softmmu,sparc-linux-user,sparc32plus-linux-user,sparc64-linux-user
37    - TARGETS=unicore32-softmmu,unicore32-linux-user
38    # Group remaining softmmu only targets into one build
39    - TARGETS=lm32-softmmu,moxie-softmmu,tricore-softmmu,xtensa-softmmu,xtensaeb-softmmu
40git:
41  # we want to do this ourselves
42  submodules: false
43before_install:
44  - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
45  - git submodule update --init --recursive
46  - sudo apt-get update -qq
47  - sudo apt-get install -qq ${CORE_PKGS} ${NET_PKGS} ${GUI_PKGS} ${EXTRA_PKGS}
48before_script:
49  - ./configure --target-list=${TARGETS} --enable-debug-tcg ${EXTRA_CONFIG}
50script:
51  - make -j2 && ${TEST_CMD}
52matrix:
53  # We manually include a number of additional build for non-standard bits
54  include:
55    # Make check target (we only do this once)
56    - env:
57        - TARGETS=alpha-softmmu,arm-softmmu,aarch64-softmmu,cris-softmmu,i386-softmmu,x86_64-softmmu,m68k-softmmu,microblaze-softmmu,microblazeel-softmmu,mips-softmmu,mips64-softmmu,mips64el-softmmu,mipsel-softmmu,or32-softmmu,ppc-softmmu,ppc64-softmmu,ppcemb-softmmu,s390x-softmmu,sh4-softmmu,sh4eb-softmmu,sparc-softmmu,sparc64-softmmu,unicore32-softmmu,unicore32-linux-user,lm32-softmmu,moxie-softmmu,tricore-softmmu,xtensa-softmmu,xtensaeb-softmmu
58          TEST_CMD="make check"
59      compiler: gcc
60    # Debug related options
61    - env: TARGETS=i386-softmmu,x86_64-softmmu
62           EXTRA_CONFIG="--enable-debug"
63      compiler: gcc
64    - env: TARGETS=i386-softmmu,x86_64-softmmu
65           EXTRA_CONFIG="--enable-debug --enable-tcg-interpreter"
66      compiler: gcc
67    # All the extra -dev packages
68    - env: TARGETS=i386-softmmu,x86_64-softmmu
69           EXTRA_PKGS="libaio-dev libcap-ng-dev libattr1-dev libbrlapi-dev uuid-dev libusb-1.0.0-dev"
70      compiler: gcc
71    # Currently configure doesn't force --disable-pie
72    - env: TARGETS=i386-softmmu,x86_64-softmmu
73           EXTRA_CONFIG="--enable-gprof --enable-gcov --disable-pie"
74      compiler: gcc
75    - env: TARGETS=i386-softmmu,x86_64-softmmu
76           EXTRA_PKGS="sparse"
77           EXTRA_CONFIG="--enable-sparse"
78      compiler: gcc
79    # All the trace backends (apart from dtrace)
80    - env: TARGETS=i386-softmmu,x86_64-softmmu
81           EXTRA_CONFIG="--enable-trace-backends=log"
82      compiler: gcc
83    - env: TARGETS=i386-softmmu,x86_64-softmmu
84           EXTRA_CONFIG="--enable-trace-backends=simple"
85      compiler: gcc
86    - env: TARGETS=i386-softmmu,x86_64-softmmu
87           EXTRA_CONFIG="--enable-trace-backends=ftrace"
88      compiler: gcc
89    - env: TARGETS=i386-softmmu,x86_64-softmmu
90          EXTRA_PKGS="liblttng-ust-dev liburcu-dev"
91          EXTRA_CONFIG="--enable-trace-backends=ust"
92      compiler: gcc
93    - env: TARGETS=i386-softmmu,x86_64-softmmu
94           EXTRA_CONFIG="--enable-modules"
95      compiler: gcc
96