ppc/pnv: enable user created pnv-phb for powernv8
[qemu.git] / .cirrus.yml
blob4895987da4e5fb3ba95db00dda22992de61bf920
1 env:
2   CIRRUS_CLONE_DEPTH: 1
4 windows_msys2_task:
5   timeout_in: 90m
6   windows_container:
7     image: cirrusci/windowsservercore:2019
8     os_version: 2019
9     cpu: 8
10     memory: 8G
11   env:
12     CIRRUS_SHELL: powershell
13     MSYS: winsymlinks:native
14     MSYSTEM: MINGW64
15     MSYS2_URL: https://github.com/msys2/msys2-installer/releases/download/2022-06-03/msys2-base-x86_64-20220603.sfx.exe
16     MSYS2_FINGERPRINT: 0
17     MSYS2_PACKAGES: "
18       diffutils git grep make pkg-config sed
19       mingw-w64-x86_64-python
20       mingw-w64-x86_64-python-sphinx
21       mingw-w64-x86_64-toolchain
22       mingw-w64-x86_64-SDL2
23       mingw-w64-x86_64-SDL2_image
24       mingw-w64-x86_64-gtk3
25       mingw-w64-x86_64-glib2
26       mingw-w64-x86_64-ninja
27       mingw-w64-x86_64-jemalloc
28       mingw-w64-x86_64-lzo2
29       mingw-w64-x86_64-zstd
30       mingw-w64-x86_64-libjpeg-turbo
31       mingw-w64-x86_64-pixman
32       mingw-w64-x86_64-libgcrypt
33       mingw-w64-x86_64-libpng
34       mingw-w64-x86_64-libssh
35       mingw-w64-x86_64-snappy
36       mingw-w64-x86_64-libusb
37       mingw-w64-x86_64-usbredir
38       mingw-w64-x86_64-libtasn1
39       mingw-w64-x86_64-nettle
40       mingw-w64-x86_64-cyrus-sasl
41       mingw-w64-x86_64-curl
42       mingw-w64-x86_64-gnutls
43       mingw-w64-x86_64-libnfs
44     "
45     CHERE_INVOKING: 1
46   msys2_cache:
47     folder: C:\tools\archive
48     reupload_on_changes: false
49     # These env variables are used to generate fingerprint to trigger the cache procedure
50     # If wanna to force re-populate msys2, increase MSYS2_FINGERPRINT
51     fingerprint_script:
52       - |
53         echo $env:CIRRUS_TASK_NAME
54         echo $env:MSYS2_URL
55         echo $env:MSYS2_FINGERPRINT
56         echo $env:MSYS2_PACKAGES
57     populate_script:
58       - |
59         md -Force C:\tools\archive\pkg
60         $start_time = Get-Date
61         bitsadmin /transfer msys_download /dynamic /download /priority FOREGROUND $env:MSYS2_URL C:\tools\archive\base.exe
62         Write-Output "Download time taken: $((Get-Date).Subtract($start_time))"
63         cd C:\tools
64         C:\tools\archive\base.exe -y
65         del -Force C:\tools\archive\base.exe
66         Write-Output "Base install time taken: $((Get-Date).Subtract($start_time))"
67         $start_time = Get-Date
69         ((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
70         C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
71         C:\tools\msys64\usr\bin\bash.exe -lc "export"
72         C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Sy
73         echo Y | C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Suu --overwrite=*
74         taskkill /F /FI "MODULES eq msys-2.0.dll"
75         tasklist
76         C:\tools\msys64\usr\bin\bash.exe -lc "mv -f /etc/pacman.conf.pacnew /etc/pacman.conf || true"
77         C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -Syuu --overwrite=*"
78         Write-Output "Core install time taken: $((Get-Date).Subtract($start_time))"
79         $start_time = Get-Date
81         C:\tools\msys64\usr\bin\bash.exe -lc "pacman --noconfirm -S --needed $env:MSYS2_PACKAGES"
82         Write-Output "Package install time taken: $((Get-Date).Subtract($start_time))"
83         $start_time = Get-Date
85         del -Force -ErrorAction SilentlyContinue C:\tools\msys64\etc\mtab
86         del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\fd
87         del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stderr
88         del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stdin
89         del -Force -ErrorAction SilentlyContinue C:\tools\msys64\dev\stdout
90         del -Force -Recurse -ErrorAction SilentlyContinue C:\tools\msys64\var\cache\pacman\pkg
91         tar cf C:\tools\archive\msys64.tar -C C:\tools\ msys64
93         Write-Output "Package archive time taken: $((Get-Date).Subtract($start_time))"
94         del -Force -Recurse -ErrorAction SilentlyContinue c:\tools\msys64 
95   install_script:
96     - |
97       $start_time = Get-Date
98       cd C:\tools
99       ls C:\tools\archive\msys64.tar
100       tar xf C:\tools\archive\msys64.tar
101       Write-Output "Extract msys2 time taken: $((Get-Date).Subtract($start_time))"
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 --python=python3"
105     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8"
106     - exit $LastExitCode
107   test_script:
108     - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"
109     - exit $LastExitCode