]> xenbits.xensource.com Git - libvirt.git/commit
gitlab: avoid building libvirt twice and running syntax-check twice
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 10 May 2021 17:14:12 +0000 (18:14 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 12 May 2021 13:18:15 +0000 (14:18 +0100)
commit156315cff4ddee560121328a530b308e1786d73b
treecfc12aff30c1b7c70269ecd7dde1e2eeffe68b37
parentb56e2be68e3d31563f7a494c0e6ae6bb7ef33007
gitlab: avoid building libvirt twice and running syntax-check twice

In the distros using RPMs, we build libvirt once as a side effect
of running "ninja dist", and once via rpmbuild.

In addition "ninja dist" will run all tests including the "syntax-check"
suite, despite use having a separate "codestyle" job for for that.

There is no way to pass "--no-suite" when creating the dist, but if we
switch to invoking "meson dist", we can skip the build+test part
entirely  using "--no-tests".

When doing this we then run explicit "meson compile" and "meson test"
commands for the distros that don't build the RPMs, and in the latter
case we can now skip the "syntax-check" suite.

The RPM builds already skipped the "syntax-check" suite.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
.gitlab-ci.yml
ci/cirrus/build.yml