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