mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
.gitlab-ci.yml: Convert the native build job to the build.sh usage
Individual shell command executions are replaced by respective functions in the ci/build.sh base script. This will make sure we use the same recipes in GitLab jobs as well as in local executions. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
3104dee434
commit
f688a53a3e
@ -25,15 +25,13 @@ include:
|
|||||||
- ccache/
|
- ccache/
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
script:
|
script:
|
||||||
- *script_variables
|
- source ci/jobs.sh
|
||||||
- meson setup build --werror $MESON_ARGS || (cat build/meson-logs/meson-log.txt && exit 1)
|
|
||||||
- meson dist -C build --no-tests
|
|
||||||
- if test -x /usr/bin/rpmbuild && test "$RPM" != "skip";
|
- if test -x /usr/bin/rpmbuild && test "$RPM" != "skip";
|
||||||
then
|
then
|
||||||
rpmbuild --clean --nodeps --define "_without_mingw 1" -ta build/meson-dist/libvirt-*.tar.xz;
|
run_rpmbuild;
|
||||||
else
|
else
|
||||||
meson compile -C build;
|
run_build;
|
||||||
meson test -C build --no-suite syntax-check --print-errorlogs;
|
run_test;
|
||||||
fi
|
fi
|
||||||
after_script:
|
after_script:
|
||||||
- test "$CI_JOB_STATUS" != "success" && exit 1;
|
- test "$CI_JOB_STATUS" != "success" && exit 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user