cirrus.yml: Compile macOS with -Werror
[qemu/ar7.git] / .cirrus.yml
blob86a059c12fd298e5438da6e60f4a538833fd419d
1 env:
2   CIRRUS_CLONE_DEPTH: 1
4 freebsd_12_task:
5   freebsd_instance:
6     image_family: freebsd-12-1
7     cpu: 8
8     memory: 8G
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 --enable-werror || { cat config.log; exit 1; }
16     - gmake -j8
17     - gmake V=1 check
19 macos_task:
20   osx_instance:
21     image: mojave-base
22   install_script:
23     - brew install pkg-config python gnu-sed glib pixman make sdl2 bash
24   script:
25     - mkdir build
26     - cd build
27     - ../configure --python=/usr/local/bin/python3 --enable-werror
28                    --extra-cflags='-Wno-error=deprecated-declarations'
29                    || { cat config.log; exit 1; }
30     - gmake -j$(sysctl -n hw.ncpu)
31     - gmake check
33 macos_xcode_task:
34   osx_instance:
35     # this is an alias for the latest Xcode
36     image: mojave-xcode
37   install_script:
38     - brew install pkg-config gnu-sed glib pixman make sdl2 bash
39   script:
40     - mkdir build
41     - cd build
42     - ../configure --extra-cflags='-Wno-error=deprecated-declarations'
43                    --enable-werror --cc=clang || { cat config.log; exit 1; }
44     - gmake -j$(sysctl -n hw.ncpu)
45     - gmake check