mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
d76efedaee
Compiler warnings currently go unnoticed in our macOS builds, since -Werror is only enabled for Linux and MinGW builds by default. So let's enable them here now, too. Unfortunately, the sasl header is marked as deprecated in the macOS headers and thus generates a lot of deprecation warnings. Thus we have to also use -Wno-error=deprecated-declarations to be able to compile the code here. Message-Id: <20200728074405.13118-4-thuth@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
env:
|
|
CIRRUS_CLONE_DEPTH: 1
|
|
|
|
freebsd_12_task:
|
|
freebsd_instance:
|
|
image_family: freebsd-12-1
|
|
cpu: 8
|
|
memory: 8G
|
|
install_script: ASSUME_ALWAYS_YES=yes pkg bootstrap -f ; pkg install -y
|
|
bash curl cyrus-sasl git glib gmake gnutls gsed
|
|
nettle perl5 pixman pkgconf png usbredir
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- ../configure --enable-werror || { cat config.log; exit 1; }
|
|
- gmake -j8
|
|
- gmake V=1 check
|
|
|
|
macos_task:
|
|
osx_instance:
|
|
image: mojave-base
|
|
install_script:
|
|
- brew install pkg-config python gnu-sed glib pixman make sdl2 bash
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- ../configure --python=/usr/local/bin/python3 --enable-werror
|
|
--extra-cflags='-Wno-error=deprecated-declarations'
|
|
|| { cat config.log; exit 1; }
|
|
- gmake -j$(sysctl -n hw.ncpu)
|
|
- gmake check
|
|
|
|
macos_xcode_task:
|
|
osx_instance:
|
|
# this is an alias for the latest Xcode
|
|
image: mojave-xcode
|
|
install_script:
|
|
- brew install pkg-config gnu-sed glib pixman make sdl2 bash
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- ../configure --extra-cflags='-Wno-error=deprecated-declarations'
|
|
--enable-werror --cc=clang || { cat config.log; exit 1; }
|
|
- gmake -j$(sysctl -n hw.ncpu)
|
|
- gmake check
|