ci: Enable msys2 ci in cirrus
[qemu/ar7.git] / .cirrus.yml
blobe5feb53b546d66926649133c37138645e449d346
1 env:
2   CIRRUS_CLONE_DEPTH: 1
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
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
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
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
67 windows_msys2_task:
68   windows_container:
69     image: cirrusci/windowsservercore:cmake
70     os_version: 2019
71     cpu: 8
72     memory: 8G
73   env:
74     MSYS: winsymlinks:nativestrict
75     MSYSTEM: MINGW64
76     CHERE_INVOKING: 1
77   printenv_script:
78     - C:\tools\msys64\usr\bin\bash.exe -lc 'printenv'
79   install_script:
80     - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
81         curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
82     - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
83         curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
84     - C:\tools\msys64\usr\bin\bash.exe -lc "cd /c/tools &&
85         pacman -U --noconfirm msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
86     - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Sy"
87     - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed
88         bash pacman pacman-mirrors msys2-runtime"
89     - taskkill /F /IM gpg-agent.exe
90     - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Su"
91     - C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed
92         base-devel
93         git
94         mingw-w64-x86_64-python
95         mingw-w64-x86_64-python-setuptools
96         mingw-w64-x86_64-toolchain
97         mingw-w64-x86_64-capstone
98         mingw-w64-x86_64-SDL2
99         mingw-w64-x86_64-SDL2_image
100         mingw-w64-x86_64-gtk3
101         mingw-w64-x86_64-glib2
102         mingw-w64-x86_64-ninja
103         mingw-w64-x86_64-make
104         mingw-w64-x86_64-lzo2
105         mingw-w64-x86_64-zstd
106         mingw-w64-x86_64-libjpeg-turbo
107         mingw-w64-x86_64-pixman
108         mingw-w64-x86_64-libgcrypt
109         mingw-w64-x86_64-libpng
110         mingw-w64-x86_64-libssh
111         mingw-w64-x86_64-libxml2
112         mingw-w64-x86_64-snappy
113         mingw-w64-x86_64-libusb
114         mingw-w64-x86_64-usbredir
115         mingw-w64-x86_64-libtasn1
116         mingw-w64-x86_64-nettle
117         mingw-w64-x86_64-cyrus-sasl
118         mingw-w64-x86_64-curl
119         mingw-w64-x86_64-gnutls
120         mingw-w64-x86_64-zstd"
121   script:
122     - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build"
123     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure
124       --python=python3 --ninja=ninja
125       --target-list-exclude=i386-softmmu,arm-softmmu,ppc-softmmu,mips-softmmu"
126     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j$NUMBER_OF_PROCESSORS"
127   test_script:
128     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"