xref: /openbmc/qemu/.gitlab-ci.yml (revision 0fd61a2d)
1before_script:
2 - apt-get update -qq
3 - apt-get install -y -qq flex bison libglib2.0-dev libpixman-1-dev genisoimage
4
5build-system1:
6 script:
7 - apt-get install -y -qq libgtk-3-dev libvte-dev nettle-dev libcacard-dev
8      libusb-dev libvde-dev libspice-protocol-dev libgl1-mesa-dev libvdeplug-dev
9 - ./configure --enable-werror --target-list="aarch64-softmmu alpha-softmmu
10      cris-softmmu hppa-softmmu lm32-softmmu moxie-softmmu microblazeel-softmmu
11      mips64el-softmmu m68k-softmmu ppc-softmmu riscv64-softmmu sparc-softmmu"
12 - make -j2
13 - make -j2 check
14
15build-system2:
16 script:
17 - apt-get install -y -qq libsdl2-dev libgcrypt-dev libbrlapi-dev libaio-dev
18      libfdt-dev liblzo2-dev librdmacm-dev libibverbs-dev libibumad-dev
19 - ./configure --enable-werror --target-list="tricore-softmmu unicore32-softmmu
20      microblaze-softmmu mips-softmmu riscv32-softmmu s390x-softmmu sh4-softmmu
21      sparc64-softmmu x86_64-softmmu xtensa-softmmu nios2-softmmu or1k-softmmu"
22 - make -j2
23 - make -j2 check
24
25build-disabled:
26 script:
27 - ./configure --enable-werror --disable-rdma --disable-slirp --disable-curl
28      --disable-capstone --disable-live-block-migration --disable-glusterfs
29      --disable-replication --disable-coroutine-pool --disable-smartcard
30      --disable-guest-agent --disable-curses --disable-libxml2 --disable-tpm
31      --disable-qom-cast-debug --disable-spice --disable-vhost-vsock
32      --disable-vhost-net --disable-vhost-crypto --disable-vhost-user
33      --target-list="i386-softmmu ppc64-softmmu mips64-softmmu i386-linux-user"
34 - make -j2
35 - make -j2 check-qtest SPEED=slow
36
37build-tcg-disabled:
38 script:
39 - apt-get install -y -qq clang libgtk-3-dev libbluetooth-dev libusb-dev
40 - ./configure --cc=clang --enable-werror --disable-tcg --audio-drv-list=""
41 - make -j2
42 - make check-unit
43 - make check-qapi-schema
44 - cd tests/qemu-iotests/
45 - ./check -raw 001 002 003 004 005 008 009 010 011 012 021 025 032 033 048
46            052 063 077 086 101 104 106 113 147 148 150 151 152 157 159 160
47            163 170 171 183 184 192 194 197 205 208 215 221 222 226 227 236
48 - ./check -qcow2 028 040 051 056 057 058 065 067 068 082 085 091 095 096 102
49            122 124 127 129 132 139 142 144 145 147 151 152 155 157 165 194
50            196 197 200 202 203 205 208 209 215 216 218 222 227 234 246 247
51            248 250 254 255 256
52
53build-user:
54 script:
55 - ./configure --enable-werror --disable-system --disable-guest-agent
56               --disable-capstone --disable-slirp --disable-fdt
57 - make -j2
58 - make run-tcg-tests-i386-linux-user run-tcg-tests-x86_64-linux-user
59
60build-clang:
61 script:
62 - apt-get install -y -qq clang libsdl2-dev libattr1-dev libcap-dev
63      xfslibs-dev libiscsi-dev libnfs-dev libseccomp-dev gnutls-dev librbd-dev
64 - ./configure --cc=clang --cxx=clang++ --enable-werror
65      --target-list="alpha-softmmu arm-softmmu m68k-softmmu mips64-softmmu
66                     ppc-softmmu s390x-softmmu x86_64-softmmu arm-linux-user"
67 - make -j2
68 - make -j2 check
69
70build-tci:
71 script:
72 - TARGETS="aarch64 alpha arm hppa m68k microblaze moxie ppc64 s390x x86_64"
73 - ./configure --enable-tcg-interpreter
74      --target-list="$(for tg in $TARGETS; do echo -n ${tg}'-softmmu '; done)"
75 - make -j2
76 - make tests/boot-serial-test tests/cdrom-test tests/pxe-test
77 - for tg in $TARGETS ; do
78     export QTEST_QEMU_BINARY="${tg}-softmmu/qemu-system-${tg}" ;
79     ./tests/boot-serial-test || exit 1 ;
80     ./tests/cdrom-test || exit 1 ;
81   done
82 - QTEST_QEMU_BINARY="x86_64-softmmu/qemu-system-x86_64" ./tests/pxe-test
83 - QTEST_QEMU_BINARY="s390x-softmmu/qemu-system-s390x" ./tests/pxe-test -m slow
84