1container: 2 image: fedora:35 3 cpu: 4 4 memory: 8Gb 5 kvm: true 6 7env: 8 CIRRUS_CLONE_DEPTH: 1 9 CI_REPOSITORY_URL: "@CI_REPOSITORY_URL@" 10 CI_COMMIT_REF_NAME: "@CI_COMMIT_REF_NAME@" 11 CI_COMMIT_SHA: "@CI_COMMIT_SHA@" 12 13@NAME@_task: 14 @NAME@_vm_cache: 15 folder: $HOME/.cache/qemu-vm 16 install_script: 17 - dnf update -y 18 - dnf install -y git make openssh-clients qemu-img qemu-system-x86 wget 19 clone_script: 20 - git clone --depth 100 "$CI_REPOSITORY_URL" . 21 - git fetch origin "$CI_COMMIT_REF_NAME" 22 - git reset --hard "$CI_COMMIT_SHA" 23 build_script: 24 - if [ -f $HOME/.cache/qemu-vm/images/@NAME@.img ]; then 25 make vm-build-@NAME@ J=$(getconf _NPROCESSORS_ONLN) 26 EXTRA_CONFIGURE_OPTS="@CONFIGURE_ARGS@" 27 BUILD_TARGET="@TEST_TARGETS@" ; 28 else 29 make vm-build-@NAME@ J=$(getconf _NPROCESSORS_ONLN) BUILD_TARGET=help 30 EXTRA_CONFIGURE_OPTS="--disable-system --disable-user --disable-tools" ; 31 fi 32