]> git.proxmox.com Git - mirror_qemu.git/blame - .cirrus.yml
qapi: Use QAPI_LIST_PREPEND() where possible
[mirror_qemu.git] / .cirrus.yml
CommitLineData
4966c5bd
TH
1env:
2 CIRRUS_CLONE_DEPTH: 1
3
114daec3 4freebsd_12_task:
7162fbb4 5 freebsd_instance:
8f3e2968 6 image_family: freebsd-12-1
114daec3
YL
7 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
345d7053 12 nettle perl5 pixman pkgconf png usbredir ninja
7162fbb4
EM
13 script:
14 - mkdir build
15 - cd build
c47110d9 16 - ../configure --enable-werror || { cat config.log meson-logs/meson-log.txt; exit 1; }
45f7b7b9 17 - gmake -j$(sysctl -n hw.ncpu)
2a5a79d1 18 - gmake -j$(sysctl -n hw.ncpu) check V=1
4966c5bd
TH
19
20macos_task:
534f80e1 21 timeout_in: 90m
4966c5bd 22 osx_instance:
7498e6af 23 image: catalina-base
4966c5bd 24 install_script:
345d7053 25 - brew install pkg-config python gnu-sed glib pixman make sdl2 bash ninja
4966c5bd 26 script:
bc4486fb
PB
27 - mkdir build
28 - cd build
d76efeda
TH
29 - ../configure --python=/usr/local/bin/python3 --enable-werror
30 --extra-cflags='-Wno-error=deprecated-declarations'
c47110d9 31 || { cat config.log meson-logs/meson-log.txt; exit 1; }
4966c5bd 32 - gmake -j$(sysctl -n hw.ncpu)
2a5a79d1 33 - gmake check V=1
fc84471a
AB
34
35macos_xcode_task:
534f80e1 36 timeout_in: 90m
fc84471a
AB
37 osx_instance:
38 # this is an alias for the latest Xcode
7498e6af 39 image: catalina-xcode
fc84471a 40 install_script:
345d7053 41 - brew install pkg-config gnu-sed glib pixman make sdl2 bash ninja
fc84471a 42 script:
bc4486fb
PB
43 - mkdir build
44 - cd build
da0dfe25 45 - ../configure --extra-cflags='-Wno-error=deprecated-declarations' --enable-modules
c47110d9 46 --enable-werror --cc=clang || { cat config.log meson-logs/meson-log.txt; exit 1; }
fc84471a 47 - gmake -j$(sysctl -n hw.ncpu)
2a5a79d1 48 - gmake check V=1
b1788880
YL
49
50windows_msys2_task:
0026b339 51 timeout_in: 90m
b1788880 52 windows_container:
0026b339 53 image: cirrusci/windowsservercore:2019
b1788880
YL
54 os_version: 2019
55 cpu: 8
56 memory: 8G
57 env:
0026b339 58 CIRRUS_SHELL: powershell
b1788880
YL
59 MSYS: winsymlinks:nativestrict
60 MSYSTEM: MINGW64
61 CHERE_INVOKING: 1
0026b339
YL
62 setup_script:
63 - choco install -y --no-progress 7zip
64 - Write-Output $env:PATH
65 msys2_cache:
66 folder: C:\tools\archive
67 reupload_on_changes: false
68 fingerprint_script: cat .cirrus.yml
69 populate_script:
70 - |
71 md C:\tools
72 md C:\tools\archive
73 $start_time = Get-Date
74 cd C:\tools
75 bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND https://github.com/msys2/msys2-installer/releases/download/2020-09-03/msys2-base-x86_64-20200903.sfx.exe C:\tools\base.exe
76 Write-Output "Download time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"
77 C:\tools\base.exe -y
78 ((Get-Content -path C:\tools\msys64\etc\\post-install\\07-pacman-key.post -Raw) -replace '--refresh-keys', '--version') | Set-Content -Path C:\tools\msys64\etc\\post-install\\07-pacman-key.post
79 C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
80 C:\tools\msys64\usr\bin\bash.exe -lc "export"
0026b339
YL
81 C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Sy
82 echo Y | C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Suu --overwrite=*
83 taskkill /F /FI "MODULES eq msys-2.0.dll"
84 tasklist
85 C:\tools\msys64\usr\bin\bash.exe -lc "mv -f /etc/pacman.conf.pacnew /etc/pacman.conf || true"
86 C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Suu --overwrite=*"
87 C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed \
88 diffutils git grep make pkg-config sed \
89 mingw-w64-x86_64-python \
0026b339
YL
90 mingw-w64-x86_64-toolchain \
91 mingw-w64-x86_64-SDL2 \
92 mingw-w64-x86_64-SDL2_image \
93 mingw-w64-x86_64-gtk3 \
94 mingw-w64-x86_64-glib2 \
95 mingw-w64-x86_64-ninja \
96 mingw-w64-x86_64-jemalloc \
97 mingw-w64-x86_64-lzo2 \
98 mingw-w64-x86_64-zstd \
99 mingw-w64-x86_64-libjpeg-turbo \
100 mingw-w64-x86_64-pixman \
101 mingw-w64-x86_64-libgcrypt \
102 mingw-w64-x86_64-libpng \
103 mingw-w64-x86_64-libssh \
104 mingw-w64-x86_64-libxml2 \
105 mingw-w64-x86_64-snappy \
106 mingw-w64-x86_64-libusb \
107 mingw-w64-x86_64-usbredir \
108 mingw-w64-x86_64-libtasn1 \
109 mingw-w64-x86_64-nettle \
110 mingw-w64-x86_64-cyrus-sasl \
111 mingw-w64-x86_64-curl \
112 mingw-w64-x86_64-gnutls \
7c5c5383 113 mingw-w64-x86_64-libnfs \
0026b339 114 "
5bfb4f52
YL
115 bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND `
116 https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz `
117 C:\tools\mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz
118 C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -U /c/tools/mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz"
119 del C:\tools\mingw-w64-x86_64-python-sphinx-2.3.1-1-any.pkg.tar.xz
0026b339
YL
120 C:\tools\msys64\usr\bin\bash.exe -lc "rm -rf /var/cache/pacman/pkg/*"
121 cd C:\tools\msys64
122 echo "Start archive"
123 cmd /C "7z a -ttar . -so | 7z a -txz -simsys2-x86_64.tar C:\tools\archive\msys2-x86_64.tar.xz"
b1788880 124 install_script:
0026b339
YL
125 - |
126 cd C:\tools
127 cmd /C "7z x C:\tools\archive\msys2-x86_64.tar.xz -so | 7z x -aoa -simsys2-x86_64.tar -ttar -omsys64"
128 C:\tools\msys64\usr\bin\bash.exe -lc "export"
129
b1788880
YL
130 script:
131 - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build"
6ebd89cf 132 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure --python=python3"
0026b339 133 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8"
b1788880
YL
134 test_script:
135 - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"