Thomas Huth | 4966c5b | 2019-03-03 15:42:59 +0100 | [diff] [blame] | 1 | env: |
| 2 | CIRRUS_CLONE_DEPTH: 1 |
| 3 | |
Yonggang Luo | 114daec | 2020-09-15 20:13:07 +0800 | [diff] [blame] | 4 | freebsd_12_task: |
Ed Maste | 7162fbb | 2019-01-22 17:25:58 +0000 | [diff] [blame] | 5 | freebsd_instance: |
Thomas Huth | e5b024b | 2021-03-23 16:52:58 +0000 | [diff] [blame] | 6 | image_family: freebsd-12-2 |
Yonggang Luo | 114daec | 2020-09-15 20:13:07 +0800 | [diff] [blame] | 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 |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 12 | nettle perl5 pixman pkgconf png usbredir ninja |
Ed Maste | 7162fbb | 2019-01-22 17:25:58 +0000 | [diff] [blame] | 13 | script: |
| 14 | - mkdir build |
| 15 | - cd build |
Thomas Huth | e5b024b | 2021-03-23 16:52:58 +0000 | [diff] [blame] | 16 | # TODO: Enable gnutls again once FreeBSD's libtasn1 got fixed |
| 17 | # See: https://gitlab.com/gnutls/libtasn1/-/merge_requests/71 |
| 18 | - ../configure --enable-werror --disable-gnutls |
| 19 | || { cat config.log meson-logs/meson-log.txt; exit 1; } |
Thomas Huth | 45f7b7b | 2020-08-24 08:25:21 +0200 | [diff] [blame] | 20 | - gmake -j$(sysctl -n hw.ncpu) |
Paolo Bonzini | 2a5a79d | 2020-10-07 17:00:37 +0100 | [diff] [blame] | 21 | - gmake -j$(sysctl -n hw.ncpu) check V=1 |
Thomas Huth | 4966c5b | 2019-03-03 15:42:59 +0100 | [diff] [blame] | 22 | |
| 23 | macos_task: |
| 24 | osx_instance: |
Thomas Huth | 7498e6a | 2020-07-24 15:18:56 +0200 | [diff] [blame] | 25 | image: catalina-base |
Thomas Huth | 4966c5b | 2019-03-03 15:42:59 +0100 | [diff] [blame] | 26 | install_script: |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 27 | - brew install pkg-config python gnu-sed glib pixman make sdl2 bash ninja |
Thomas Huth | 4966c5b | 2019-03-03 15:42:59 +0100 | [diff] [blame] | 28 | script: |
Paolo Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 29 | - mkdir build |
| 30 | - cd build |
Thomas Huth | d76efed | 2020-07-27 17:24:26 +0200 | [diff] [blame] | 31 | - ../configure --python=/usr/local/bin/python3 --enable-werror |
| 32 | --extra-cflags='-Wno-error=deprecated-declarations' |
Paolo Bonzini | c47110d | 2020-10-16 05:49:28 -0400 | [diff] [blame] | 33 | || { cat config.log meson-logs/meson-log.txt; exit 1; } |
Thomas Huth | 4966c5b | 2019-03-03 15:42:59 +0100 | [diff] [blame] | 34 | - gmake -j$(sysctl -n hw.ncpu) |
Daniel P. Berrangé | af229fc | 2021-01-06 11:41:59 +0000 | [diff] [blame] | 35 | - gmake check-unit V=1 |
| 36 | - gmake check-block V=1 |
| 37 | - gmake check-qapi-schema V=1 |
| 38 | - gmake check-softfloat V=1 |
| 39 | - gmake check-qtest-x86_64 V=1 |
Alex Bennée | fc84471 | 2019-10-16 19:27:13 +0100 | [diff] [blame] | 40 | |
| 41 | macos_xcode_task: |
| 42 | osx_instance: |
| 43 | # this is an alias for the latest Xcode |
Thomas Huth | 7498e6a | 2020-07-24 15:18:56 +0200 | [diff] [blame] | 44 | image: catalina-xcode |
Alex Bennée | fc84471 | 2019-10-16 19:27:13 +0100 | [diff] [blame] | 45 | install_script: |
Paolo Bonzini | 345d705 | 2020-08-13 09:58:50 -0400 | [diff] [blame] | 46 | - brew install pkg-config gnu-sed glib pixman make sdl2 bash ninja |
Alex Bennée | fc84471 | 2019-10-16 19:27:13 +0100 | [diff] [blame] | 47 | script: |
Paolo Bonzini | bc4486f | 2019-12-11 15:33:49 +0100 | [diff] [blame] | 48 | - mkdir build |
| 49 | - cd build |
Paolo Bonzini | da0dfe2 | 2020-10-20 05:18:17 -0400 | [diff] [blame] | 50 | - ../configure --extra-cflags='-Wno-error=deprecated-declarations' --enable-modules |
Paolo Bonzini | c47110d | 2020-10-16 05:49:28 -0400 | [diff] [blame] | 51 | --enable-werror --cc=clang || { cat config.log meson-logs/meson-log.txt; exit 1; } |
Alex Bennée | fc84471 | 2019-10-16 19:27:13 +0100 | [diff] [blame] | 52 | - gmake -j$(sysctl -n hw.ncpu) |
Daniel P. Berrangé | af229fc | 2021-01-06 11:41:59 +0000 | [diff] [blame] | 53 | - gmake check-unit V=1 |
| 54 | - gmake check-block V=1 |
| 55 | - gmake check-qapi-schema V=1 |
| 56 | - gmake check-softfloat V=1 |
| 57 | - gmake check-qtest-x86_64 V=1 |
Yonggang Luo | b178888 | 2020-09-15 20:13:16 +0800 | [diff] [blame] | 58 | |
| 59 | windows_msys2_task: |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 60 | timeout_in: 90m |
Yonggang Luo | b178888 | 2020-09-15 20:13:16 +0800 | [diff] [blame] | 61 | windows_container: |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 62 | image: cirrusci/windowsservercore:2019 |
Yonggang Luo | b178888 | 2020-09-15 20:13:16 +0800 | [diff] [blame] | 63 | os_version: 2019 |
| 64 | cpu: 8 |
| 65 | memory: 8G |
| 66 | env: |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 67 | CIRRUS_SHELL: powershell |
Yonggang Luo | b178888 | 2020-09-15 20:13:16 +0800 | [diff] [blame] | 68 | MSYS: winsymlinks:nativestrict |
| 69 | MSYSTEM: MINGW64 |
Thomas Huth | 568740b | 2021-04-27 20:55:24 +0200 | [diff] [blame] | 70 | MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/2021-04-19/msys2-base-x86_64-20210419.sfx.exe |
Yonggang Luo | 29c7ac4 | 2021-01-07 02:19:16 -0800 | [diff] [blame] | 71 | MSYS2_FINGERPRINT: 0 |
| 72 | MSYS2_PACKAGES: " |
| 73 | diffutils git grep make pkg-config sed |
| 74 | mingw-w64-x86_64-python |
| 75 | mingw-w64-x86_64-python-sphinx |
| 76 | mingw-w64-x86_64-toolchain |
| 77 | mingw-w64-x86_64-SDL2 |
| 78 | mingw-w64-x86_64-SDL2_image |
| 79 | mingw-w64-x86_64-gtk3 |
| 80 | mingw-w64-x86_64-glib2 |
| 81 | mingw-w64-x86_64-ninja |
| 82 | mingw-w64-x86_64-jemalloc |
| 83 | mingw-w64-x86_64-lzo2 |
| 84 | mingw-w64-x86_64-zstd |
| 85 | mingw-w64-x86_64-libjpeg-turbo |
| 86 | mingw-w64-x86_64-pixman |
| 87 | mingw-w64-x86_64-libgcrypt |
| 88 | mingw-w64-x86_64-libpng |
| 89 | mingw-w64-x86_64-libssh |
| 90 | mingw-w64-x86_64-libxml2 |
| 91 | mingw-w64-x86_64-snappy |
| 92 | mingw-w64-x86_64-libusb |
| 93 | mingw-w64-x86_64-usbredir |
| 94 | mingw-w64-x86_64-libtasn1 |
| 95 | mingw-w64-x86_64-nettle |
| 96 | mingw-w64-x86_64-cyrus-sasl |
| 97 | mingw-w64-x86_64-curl |
| 98 | mingw-w64-x86_64-gnutls |
| 99 | mingw-w64-x86_64-libnfs |
| 100 | " |
Yonggang Luo | b178888 | 2020-09-15 20:13:16 +0800 | [diff] [blame] | 101 | CHERE_INVOKING: 1 |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 102 | msys2_cache: |
| 103 | folder: C:\tools\archive |
| 104 | reupload_on_changes: false |
Yonggang Luo | 29c7ac4 | 2021-01-07 02:19:16 -0800 | [diff] [blame] | 105 | # These env variables are used to generate fingerprint to trigger the cache procedure |
| 106 | # If wanna to force re-populate msys2, increase MSYS2_FINGERPRINT |
| 107 | fingerprint_script: |
| 108 | - | |
| 109 | echo $env:CIRRUS_TASK_NAME |
| 110 | echo $env:MSYS2_URL |
| 111 | echo $env:MSYS2_FINGERPRINT |
| 112 | echo $env:MSYS2_PACKAGES |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 113 | populate_script: |
| 114 | - | |
Yonggang Luo | 29c7ac4 | 2021-01-07 02:19:16 -0800 | [diff] [blame] | 115 | md -Force C:\tools\archive\pkg |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 116 | $start_time = Get-Date |
Yonggang Luo | 29c7ac4 | 2021-01-07 02:19:16 -0800 | [diff] [blame] | 117 | bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND $env:MSYS2_URL C:\tools\archive\base.exe |
| 118 | Write-Output "Download time taken: $((Get-Date).Subtract($start_time))" |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 119 | cd C:\tools |
Yonggang Luo | 29c7ac4 | 2021-01-07 02:19:16 -0800 | [diff] [blame] | 120 | C:\tools\archive\base.exe -y |
| 121 | del -Force C:\tools\archive\base.exe |
| 122 | Write-Output "Base install time taken: $((Get-Date).Subtract($start_time))" |
| 123 | $start_time = Get-Date |
| 124 | |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 125 | ((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 |
| 126 | C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf" |
| 127 | C:\tools\msys64\usr\bin\bash.exe -lc "export" |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 128 | C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Sy |
| 129 | echo Y | C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Suu --overwrite=* |
| 130 | taskkill /F /FI "MODULES eq msys-2.0.dll" |
| 131 | tasklist |
| 132 | C:\tools\msys64\usr\bin\bash.exe -lc "mv -f /etc/pacman.conf.pacnew /etc/pacman.conf || true" |
Thomas Huth | 568740b | 2021-04-27 20:55:24 +0200 | [diff] [blame] | 133 | C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Syuu --overwrite=*" |
Yonggang Luo | 29c7ac4 | 2021-01-07 02:19:16 -0800 | [diff] [blame] | 134 | Write-Output "Core install time taken: $((Get-Date).Subtract($start_time))" |
| 135 | $start_time = Get-Date |
| 136 | |
| 137 | C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed $env:MSYS2_PACKAGES" |
| 138 | Write-Output "Package install time taken: $((Get-Date).Subtract($start_time))" |
| 139 | $start_time = Get-Date |
| 140 | |
| 141 | del -Force -ErrorAction SilentlyContinue C:\tools\msys64\etc\mtab |
| 142 | del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\fd |
| 143 | del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stderr |
| 144 | del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stdin |
| 145 | del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stdout |
| 146 | del -Force -Recurse -ErrorAction SilentlyContinue C:\tools\msys64\var\cache\pacman\pkg |
| 147 | tar cf C:\tools\archive\msys64.tar -C C:\tools\ msys64 |
| 148 | |
| 149 | Write-Output "Package archive time taken: $((Get-Date).Subtract($start_time))" |
| 150 | del -Force -Recurse -ErrorAction SilentlyContinue c:\tools\msys64 |
Yonggang Luo | b178888 | 2020-09-15 20:13:16 +0800 | [diff] [blame] | 151 | install_script: |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 152 | - | |
Yonggang Luo | 29c7ac4 | 2021-01-07 02:19:16 -0800 | [diff] [blame] | 153 | $start_time = Get-Date |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 154 | cd C:\tools |
Yonggang Luo | 29c7ac4 | 2021-01-07 02:19:16 -0800 | [diff] [blame] | 155 | ls C:\tools\archive\msys64.tar |
| 156 | tar xf C:\tools\archive\msys64.tar |
| 157 | Write-Output "Extract msys2 time taken: $((Get-Date).Subtract($start_time))" |
Yonggang Luo | b178888 | 2020-09-15 20:13:16 +0800 | [diff] [blame] | 158 | script: |
| 159 | - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build" |
Paolo Bonzini | 6ebd89c | 2020-10-15 03:20:45 -0400 | [diff] [blame] | 160 | - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure --python=python3" |
Yonggang Luo | 0026b33 | 2020-10-07 17:00:20 +0100 | [diff] [blame] | 161 | - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8" |
Yonggang Luo | dc83539 | 2021-01-07 02:19:15 -0800 | [diff] [blame] | 162 | - exit $LastExitCode |
Yonggang Luo | b178888 | 2020-09-15 20:13:16 +0800 | [diff] [blame] | 163 | test_script: |
| 164 | - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check" |
Yonggang Luo | dc83539 | 2021-01-07 02:19:15 -0800 | [diff] [blame] | 165 | - exit $LastExitCode |