tcg: spelling fixes
[qemu/ar7.git] / .gitlab-ci.d / cirrus.yml
blob1507c928e5cd3c5d123cbb79bd76b65e611c1a26
1 # Jobs that we delegate to Cirrus CI because they require an operating
2 # system other than Linux. These jobs will only run if the required
3 # setup has been performed on the GitLab account.
5 # The Cirrus CI configuration is generated by replacing target-specific
6 # variables in a generic template: some of these variables are provided
7 # when the GitLab CI job is defined, others are taken from a shell
8 # snippet generated using lcitool.
10 # Note that the $PATH environment variable has to be treated with
11 # special care, because we can't just override it at the GitLab CI job
12 # definition level or we risk breaking it completely.
13 .cirrus_build_job:
14   extends: .base_job_template
15   stage: build
16   image: registry.gitlab.com/libvirt/libvirt-ci/cirrus-run:master
17   needs: []
18   timeout: 80m
19   allow_failure: true
20   script:
21     - source .gitlab-ci.d/cirrus/$NAME.vars
22     - sed -e "s|[@]CI_REPOSITORY_URL@|$CI_REPOSITORY_URL|g"
23           -e "s|[@]CI_COMMIT_REF_NAME@|$CI_COMMIT_REF_NAME|g"
24           -e "s|[@]CI_COMMIT_SHA@|$CI_COMMIT_SHA|g"
25           -e "s|[@]CIRRUS_VM_INSTANCE_TYPE@|$CIRRUS_VM_INSTANCE_TYPE|g"
26           -e "s|[@]CIRRUS_VM_IMAGE_SELECTOR@|$CIRRUS_VM_IMAGE_SELECTOR|g"
27           -e "s|[@]CIRRUS_VM_IMAGE_NAME@|$CIRRUS_VM_IMAGE_NAME|g"
28           -e "s|[@]CIRRUS_VM_CPUS@|$CIRRUS_VM_CPUS|g"
29           -e "s|[@]CIRRUS_VM_RAM@|$CIRRUS_VM_RAM|g"
30           -e "s|[@]UPDATE_COMMAND@|$UPDATE_COMMAND|g"
31           -e "s|[@]INSTALL_COMMAND@|$INSTALL_COMMAND|g"
32           -e "s|[@]PATH@|$PATH_EXTRA${PATH_EXTRA:+:}\$PATH|g"
33           -e "s|[@]PKG_CONFIG_PATH@|$PKG_CONFIG_PATH|g"
34           -e "s|[@]PKGS@|$PKGS|g"
35           -e "s|[@]MAKE@|$MAKE|g"
36           -e "s|[@]PYTHON@|$PYTHON|g"
37           -e "s|[@]PIP3@|$PIP3|g"
38           -e "s|[@]PYPI_PKGS@|$PYPI_PKGS|g"
39           -e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
40           -e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"
41       <.gitlab-ci.d/cirrus/build.yml >.gitlab-ci.d/cirrus/$NAME.yml
42     - cat .gitlab-ci.d/cirrus/$NAME.yml
43     - cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
44   variables:
45     QEMU_JOB_CIRRUS: 1
47 x64-freebsd-13-build:
48   extends: .cirrus_build_job
49   variables:
50     NAME: freebsd-13
51     CIRRUS_VM_INSTANCE_TYPE: freebsd_instance
52     CIRRUS_VM_IMAGE_SELECTOR: image_family
53     CIRRUS_VM_IMAGE_NAME: freebsd-13-1
54     CIRRUS_VM_CPUS: 8
55     CIRRUS_VM_RAM: 8G
56     UPDATE_COMMAND: pkg update; pkg upgrade -y
57     INSTALL_COMMAND: pkg install -y
58     TEST_TARGETS: check
60 aarch64-macos-12-base-build:
61   extends: .cirrus_build_job
62   variables:
63     NAME: macos-12
64     CIRRUS_VM_INSTANCE_TYPE: macos_instance
65     CIRRUS_VM_IMAGE_SELECTOR: image
66     CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-monterey-base:latest
67     CIRRUS_VM_CPUS: 12
68     CIRRUS_VM_RAM: 24G
69     UPDATE_COMMAND: brew update
70     INSTALL_COMMAND: brew install
71     PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin
72     PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebrew/readline/lib/pkgconfig
73     TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64
76 # The following jobs run VM-based tests via KVM on a Linux-based Cirrus-CI job
77 .cirrus_kvm_job:
78   extends: .base_job_template
79   stage: build
80   image: registry.gitlab.com/libvirt/libvirt-ci/cirrus-run:master
81   needs: []
82   timeout: 80m
83   script:
84     - sed -e "s|[@]CI_REPOSITORY_URL@|$CI_REPOSITORY_URL|g"
85           -e "s|[@]CI_COMMIT_REF_NAME@|$CI_COMMIT_REF_NAME|g"
86           -e "s|[@]CI_COMMIT_SHA@|$CI_COMMIT_SHA|g"
87           -e "s|[@]NAME@|$NAME|g"
88           -e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
89           -e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"
90       <.gitlab-ci.d/cirrus/kvm-build.yml >.gitlab-ci.d/cirrus/$NAME.yml
91     - cat .gitlab-ci.d/cirrus/$NAME.yml
92     - cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
93   variables:
94     QEMU_JOB_CIRRUS: 1
95     QEMU_JOB_OPTIONAL: 1
98 x86-netbsd:
99   extends: .cirrus_kvm_job
100   variables:
101     NAME: netbsd
102     CONFIGURE_ARGS: --target-list=x86_64-softmmu,ppc64-softmmu,aarch64-softmmu
103     TEST_TARGETS: check
105 x86-openbsd:
106   extends: .cirrus_kvm_job
107   variables:
108     NAME: openbsd
109     CONFIGURE_ARGS: --target-list=i386-softmmu,riscv64-softmmu,mips64-softmmu
110     TEST_TARGETS: check