mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
bbbd4e48be
Currently we have nine different cross build jobs, but as we introduce more native jobs this is going to result in a very long CI execution time. For developers testing their personal branches under development it is generally sufficient to just look at a couple of interesting scenarios, namely 32-bit and big endian. This splits the cross build jobs so that by default only the armv7 and s390x archs are built. The remainining archs are setup so that they are only built for code on the master branch, which will have the effect of doing post-merge testing. Developers can opt-in to full testing of their pre-merge code by pushing it to a branch with a name prefix of "ci-full-". Reviewed-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
85 lines
2.5 KiB
YAML
85 lines
2.5 KiB
YAML
variables:
|
|
MAKE: make
|
|
GIT_DEPTH: 100
|
|
|
|
stages:
|
|
- prebuild
|
|
- cross_build
|
|
|
|
|
|
# Default cross build jobs that are always run
|
|
.cross_build_default_job_template: &cross_build_default_job_definition
|
|
stage: cross_build
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- ../autogen.sh $CONFIGURE_OPTS || (cat config.log && exit 1)
|
|
- $MAKE -j $(getconf _NPROCESSORS_ONLN)
|
|
|
|
# Extra cross build jobs that are only run post-merge, or
|
|
# when code is pushed to a branch with "ci-full-" name prefix
|
|
.cross_build_extra_job_template: &cross_build_extra_job_definition
|
|
<<: *cross_build_default_job_definition
|
|
only:
|
|
- master
|
|
- /^ci-full-.*$/
|
|
|
|
|
|
debian-9-cross-armv6l:
|
|
<<: *cross_build_extra_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-armv6l:latest
|
|
|
|
debian-9-cross-mips64el:
|
|
<<: *cross_build_extra_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips64el:latest
|
|
|
|
debian-9-cross-mips:
|
|
<<: *cross_build_extra_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips:latest
|
|
|
|
debian-10-cross-aarch64:
|
|
<<: *cross_build_extra_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-aarch64:latest
|
|
|
|
debian-10-cross-ppc64le:
|
|
<<: *cross_build_extra_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-ppc64le:latest
|
|
|
|
debian-10-cross-s390x:
|
|
<<: *cross_build_default_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-s390x:latest
|
|
|
|
debian-sid-cross-armv7l:
|
|
<<: *cross_build_default_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-armv7l:latest
|
|
|
|
debian-sid-cross-i686:
|
|
<<: *cross_build_extra_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-i686:latest
|
|
|
|
debian-sid-cross-mipsel:
|
|
<<: *cross_build_extra_job_definition
|
|
image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-mipsel:latest
|
|
|
|
# This artifact published by this job is downloaded by libvirt.org to
|
|
# be deployed to the web root:
|
|
# https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?job=website
|
|
website:
|
|
stage: prebuild
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- ../autogen.sh --prefix=$(pwd)/../vroot || (cat config.log && exit 1)
|
|
- $MAKE -j $(getconf _NPROCESSORS_ONLN) -C docs
|
|
- $MAKE -j $(getconf _NPROCESSORS_ONLN) -C docs install
|
|
- cd ..
|
|
- mv vroot/share/doc/libvirt/html/ website
|
|
image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest
|
|
artifacts:
|
|
expose_as: 'Website'
|
|
name: 'website'
|
|
when: on_success
|
|
expire_in: 30 days
|
|
paths:
|
|
- website
|