11 .script_variables: &script_variables |
12 export CCACHE_BASEDIR="$(pwd)"
13 export CCACHE_DIR="$CCACHE_BASEDIR/ccache"
14 export CCACHE_MAXSIZE="500M"
15 export PATH="$CCACHE_WRAPPERSDIR:$PATH"
16 export VIR_TEST_VERBOSE="1"
17 export VIR_TEST_DEBUG="1"
21 - '/ci/integration.yml'
24 extends: .gitlab_native_build_job
31 - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip";
39 - test "$CI_JOB_STATUS" != "success" && exit 1;
40 - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip";
42 mv "$HOME"/rpmbuild/RPMS/x86_64/ libvirt-rpms/;
46 extends: .gitlab_cross_build_job
53 - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip";
58 if test "$CROSS" = "i686";
64 # This artifact published by this job is downloaded by libvirt.org to
65 # be deployed to the web root:
66 # https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?job=website
68 extends: .gitlab_native_build_job
70 - job: x86_64-almalinux-9-container
76 - test "$CI_JOB_STATUS" != "success" && exit 1;
77 - mv install/usr/share/doc/libvirt/html/ website
87 TARGET_BASE_IMAGE: docker.io/library/almalinux:9
89 # On push to master publish the website from 'website_job' via gitlab pages
94 - cp .gitlab_pages_redirects public/_redirects
98 - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
109 extends: .gitlab_native_build_job
111 - job: x86_64-opensuse-leap-15-container
117 NAME: opensuse-leap-15
118 TARGET_BASE_IMAGE: registry.opensuse.org/opensuse/leap:15.5
120 # This artifact published by this job is downloaded to push to Weblate
121 # for translation usage:
122 # https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?job=potfile
124 image: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt/ci-$NAME:latest
131 - job: x86_64-almalinux-9-container
134 - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
143 - test "$CI_JOB_STATUS" != "success" && exit 1;
144 - cp po/libvirt.pot libvirt.pot
153 # Coverity job that is run only by schedules
155 image: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt/ci-$NAME:latest
158 - job: x86_64-almalinux-9-container
163 - curl https://scan.coverity.com/download/cxx/linux64 --form project=$COVERITY_SCAN_PROJECT_NAME --form token=$COVERITY_SCAN_TOKEN -o /tmp/cov-analysis-linux64.tgz
164 - tar xfz /tmp/cov-analysis-linux64.tgz
165 - meson setup build --werror || (cat build/meson-logs/meson-log.txt && exit 1)
166 - cov-analysis-linux64-*/bin/cov-build --dir cov-int meson compile -C build
167 - tar cfz cov-int.tar.gz cov-int
168 - curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME --form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL --form file=@cov-int.tar.gz --form version="$(git describe --tags)" --form description="$(git describe --tags) / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
172 - if: '$COVERITY_SCAN_PROJECT_NAME == null || $COVERITY_SCAN_TOKEN == null'
174 - if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH'