libvirt recently dropped support for running on CentOS 6, but the libvirt.org website still runs on that platform, so we need to be able to at least build documentation and create distribution tarballs a little while longer. autotools-website-job is the template for an ad-hoc job that does exactly that, thus guaranteeing that the bare minimum functionality we still need to work in CentOS 6 will, even as the library itself moves forward and possibly stops building on the OS altogether. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- jobs/autotools.yaml | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml index 0c164d3..9b26bc3 100644 --- a/jobs/autotools.yaml +++ b/jobs/autotools.yaml @@ -257,3 +257,70 @@ recipients: '{obj:spam}' notify-every-unstable-build: true send-to-individuals: false + +- job-template: + id: autotools-website-job + name: '{name}-{branch}-website' + project-type: matrix + description: '{title} Website' + autogen_args: '' + workspace: '{name}-{branch}-website' + child-workspace: '.' + block-downstream: true + block-upstream: true + wrappers: + - timeout: + abort: true + type: absolute + timeout: 90 + write-description: 'Aborted build after 90 minutes' + properties: + - build-discarder: + days-to-keep: 30 + num-to-keep: 1000 + scm: + - git: + url: git://n64.pufty.ci.centos.org/{name}.git + branches: + - origin/{branch} + clean: + after: true + skip-tag: true + wipe-workspace: false + triggers: + - reverse: + jobs: '{obj:parent_jobs}' + - pollscm: + cron: "H/20 * * * *" + axes: + - axis: + name: systems + type: slave + values: '{obj:machines}' + builders: + - shell: | + {global_env} + {local_env} + + # This job type is specifically tailored for the libvirt project + # and won't work anywhere else. Checking for libvirt.spec.in is + # a quick way to make sure the template is not being misused + test -e libvirt.spec.in + + mkdir build + cd build + + # Disable libvirtd and macvtap support to cut down the number + # of dependencies we need to install on the build worker + ../autogen.sh --without-libvirtd --without-macvtap + + # Build the website itself + $MAKE -j{smp} -C docs/ + + # Make sure we can build nightly source snapshots + $MAKE -j{smp} dist + publishers: + - email: + recipients: '{obj:spam}' + notify-every-unstable-build: true + send-to-individuals: false -- 2.14.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list