blob: d58782ce67a4a7e26961bf863d291d247e4d2bd3 [file] [log] [blame]
Thomas Huth4966c5b2019-03-03 15:42:59 +01001env:
2 CIRRUS_CLONE_DEPTH: 1
3
Yonggang Luo114daec2020-09-15 20:13:07 +08004freebsd_12_task:
Ed Maste7162fbb2019-01-22 17:25:58 +00005 freebsd_instance:
Alex Bennée8f3e2962020-05-01 12:15:04 +01006 image_family: freebsd-12-1
Yonggang Luo114daec2020-09-15 20:13:07 +08007 cpu: 8
8 memory: 8G
9 install_script:
10 - ASSUME_ALWAYS_YES=yes pkg bootstrap -f ;
11 - pkg install -y bash curl cyrus-sasl git glib gmake gnutls gsed
12 nettle perl5 pixman pkgconf png usbredir
Ed Maste7162fbb2019-01-22 17:25:58 +000013 script:
14 - mkdir build
15 - cd build
Yonggang Luo114daec2020-09-15 20:13:07 +080016 - ../configure --enable-werror || { cat config.log; exit 1; }
Thomas Huth45f7b7b2020-08-24 08:25:21 +020017 - gmake -j$(sysctl -n hw.ncpu)
18 - gmake -j$(sysctl -n hw.ncpu) check
Thomas Huth4966c5b2019-03-03 15:42:59 +010019
20macos_task:
21 osx_instance:
Thomas Huth7498e6a2020-07-24 15:18:56 +020022 image: catalina-base
Thomas Huth4966c5b2019-03-03 15:42:59 +010023 install_script:
Alex Bennée83c85bf2020-07-10 17:30:21 +010024 - brew install pkg-config python gnu-sed glib pixman make sdl2 bash
Thomas Huth4966c5b2019-03-03 15:42:59 +010025 script:
Paolo Bonzinibc4486f2019-12-11 15:33:49 +010026 - mkdir build
27 - cd build
Thomas Huthd76efed2020-07-27 17:24:26 +020028 - ../configure --python=/usr/local/bin/python3 --enable-werror
29 --extra-cflags='-Wno-error=deprecated-declarations'
30 || { cat config.log; exit 1; }
Thomas Huth4966c5b2019-03-03 15:42:59 +010031 - gmake -j$(sysctl -n hw.ncpu)
Alex Bennée7e123612020-06-12 20:02:37 +010032 - gmake check
Alex Bennéefc844712019-10-16 19:27:13 +010033
34macos_xcode_task:
35 osx_instance:
36 # this is an alias for the latest Xcode
Thomas Huth7498e6a2020-07-24 15:18:56 +020037 image: catalina-xcode
Alex Bennéefc844712019-10-16 19:27:13 +010038 install_script:
Alex Bennée83c85bf2020-07-10 17:30:21 +010039 - brew install pkg-config gnu-sed glib pixman make sdl2 bash
Alex Bennéefc844712019-10-16 19:27:13 +010040 script:
Paolo Bonzinibc4486f2019-12-11 15:33:49 +010041 - mkdir build
42 - cd build
Thomas Huthd76efed2020-07-27 17:24:26 +020043 - ../configure --extra-cflags='-Wno-error=deprecated-declarations'
44 --enable-werror --cc=clang || { cat config.log; exit 1; }
Alex Bennéefc844712019-10-16 19:27:13 +010045 - gmake -j$(sysctl -n hw.ncpu)
Alex Bennée7e123612020-06-12 20:02:37 +010046 - gmake check
Yonggang Luob1788882020-09-15 20:13:16 +080047
48windows_msys2_task:
49 windows_container:
50 image: cirrusci/windowsservercore:cmake
51 os_version: 2019
52 cpu: 8
53 memory: 8G
54 env:
55 MSYS: winsymlinks:nativestrict
56 MSYSTEM: MINGW64
57 CHERE_INVOKING: 1
58 printenv_script:
59 - C:\tools\msys64\usr\bin\bash.exe -lc 'printenv'
60 install_script:
61 - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
62 curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
63 - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
64 curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
65 - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
66 pacman -U --noconfirm msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
67 - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Sy"
68 - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed
69 bash pacman pacman-mirrors msys2-runtime"
70 - taskkill /F /IM gpg-agent.exe
71 - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Su"
72 - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed
73 base-devel
74 git
75 mingw-w64-x86_64-python
76 mingw-w64-x86_64-python-setuptools
77 mingw-w64-x86_64-toolchain
78 mingw-w64-x86_64-capstone
79 mingw-w64-x86_64-SDL2
80 mingw-w64-x86_64-SDL2_image
81 mingw-w64-x86_64-gtk3
82 mingw-w64-x86_64-glib2
83 mingw-w64-x86_64-ninja
84 mingw-w64-x86_64-make
85 mingw-w64-x86_64-lzo2
86 mingw-w64-x86_64-zstd
87 mingw-w64-x86_64-libjpeg-turbo
88 mingw-w64-x86_64-pixman
89 mingw-w64-x86_64-libgcrypt
90 mingw-w64-x86_64-libpng
91 mingw-w64-x86_64-libssh
92 mingw-w64-x86_64-libxml2
93 mingw-w64-x86_64-snappy
94 mingw-w64-x86_64-libusb
95 mingw-w64-x86_64-usbredir
96 mingw-w64-x86_64-libtasn1
97 mingw-w64-x86_64-nettle
98 mingw-w64-x86_64-cyrus-sasl
99 mingw-w64-x86_64-curl
100 mingw-w64-x86_64-gnutls
101 mingw-w64-x86_64-zstd"
102 script:
103 - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build"
104 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure
105 --python=python3 --ninja=ninja
106 --target-list-exclude=i386-softmmu,arm-softmmu,ppc-softmmu,mips-softmmu"
107 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j$NUMBER_OF_PROCESSORS"
108 test_script:
109 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"