cirrus.yml: Split FreeBSD job into two parts
[qemu.git] / .cirrus.yml
1 env:
2   CIRRUS_CLONE_DEPTH: 1
3
4 freebsd_1st_task:
5   freebsd_instance:
6     image_family: freebsd-12-1
7     cpu: 4
8     memory: 4G
9   install_script: ASSUME_ALWAYS_YES=yes pkg bootstrap -f ; pkg install -y
10     bash curl cyrus-sasl git glib gmake gnutls gsed
11     nettle perl5 pixman pkgconf png usbredir
12   script:
13     - mkdir build
14     - cd build
15     - ../configure --disable-user --target-list-exclude='alpha-softmmu
16         ppc64-softmmu ppc-softmmu riscv32-softmmu riscv64-softmmu s390x-softmmu
17         sparc64-softmmu sparc-softmmu x86_64-softmmu i386-softmmu'
18         --enable-werror || { cat config.log; exit 1; }
19     - gmake -j$(sysctl -n hw.ncpu)
20     - gmake -j$(sysctl -n hw.ncpu) check
21
22 freebsd_2nd_task:
23   freebsd_instance:
24     image_family: freebsd-12-1
25     cpu: 4
26     memory: 4G
27   install_script: ASSUME_ALWAYS_YES=yes pkg bootstrap -f ; pkg install -y
28     bash curl cyrus-sasl git glib gmake gnutls gtk3 gsed libepoxy mesa-libs
29     nettle perl5 pixman pkgconf png SDL2 usbredir
30   script:
31     - ./configure --enable-werror --target-list='alpha-softmmu ppc64-softmmu
32         ppc-softmmu riscv32-softmmu riscv64-softmmu s390x-softmmu
33         sparc64-softmmu sparc-softmmu x86_64-softmmu i386-softmmu
34         sparc-bsd-user sparc64-bsd-user x86_64-bsd-user i386-bsd-user'
35         || { cat config.log; exit 1; }
36     - gmake -j$(sysctl -n hw.ncpu)
37     - gmake -j$(sysctl -n hw.ncpu) check
38
39 macos_task:
40   osx_instance:
41     image: catalina-base
42   install_script:
43     - brew install pkg-config python gnu-sed glib pixman make sdl2 bash
44   script:
45     - mkdir build
46     - cd build
47     - ../configure --python=/usr/local/bin/python3 --enable-werror
48                    --extra-cflags='-Wno-error=deprecated-declarations'
49                    || { cat config.log; exit 1; }
50     - gmake -j$(sysctl -n hw.ncpu)
51     - gmake check
52
53 macos_xcode_task:
54   osx_instance:
55     # this is an alias for the latest Xcode
56     image: catalina-xcode
57   install_script:
58     - brew install pkg-config gnu-sed glib pixman make sdl2 bash
59   script:
60     - mkdir build
61     - cd build
62     - ../configure --extra-cflags='-Wno-error=deprecated-declarations'
63                    --enable-werror --cc=clang || { cat config.log; exit 1; }
64     - gmake -j$(sysctl -n hw.ncpu)
65     - gmake check