[Spice-devel] [PATCH spice-gtk 2/3] Update gitlab-ci to use meson

Frediano Ziglio fziglio at redhat.com
Thu Jun 21 11:55:07 UTC 2018


Was looking at something like this for spice-common (having a build
with Meson on CI)

> 
> Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
> ---
>  .gitlab-ci.yml | 26 +++++++++++++++++++++++++-
>  1 file changed, 25 insertions(+), 1 deletion(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 77762f1..696d3cf 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -1,9 +1,12 @@
>  image: fedora:latest
>  
>  before_script:
> -  - dnf install 'dnf-command(copr)' git libtool make pyparsing
> redhat-rpm-config -y
> +  - dnf -y install 'dnf-command(copr)' 'dnf-command(config-manager)'
> +  - dnf config-manager --set-enabled updates-testing

I think this (config-manager and enabling updates-testing) is
not necessary now.

> +  - dnf install git libtool make pyparsing redhat-rpm-config meson
> ninja-build python3 python3-six python3-pyparsing python3-devel
> mesa-libEGL-devel -y
>    - dnf copr enable @spice/nightly -y
>    - dnf builddep spice-gtk -y
> +  - ln -sf /usr/bin/python3 /usr/bin/python #FIXME?
>  

Looking at the logs Meson uses pkg-config to check
python3 so you need python3-devel installed.

>  makecheck:
>    script:
> @@ -11,6 +14,12 @@ makecheck:
>    - make -j4
>    - make check
>  
> +makecheck-meson:
> +  script:
> +  - meson build -Dintrospection=false #FIXME
> +  - ninja -C build
> +  - cd build && meson test
> +
>  makecheck_simple:
>    script:
>    - ./autogen.sh --enable-static
> @@ -26,3 +35,18 @@ makecheck_simple:
>          --enable-dbus=no
>    - make -j4
>    - make check
> +
> +makecheck_simple-meson:
> +  script:
> +  - meson build -Dlz4=false
> +                -Dgstaudio=false
> +                -Dgstvideo=false
> +                -Dwebdav=false
> +                -Dsasl=false
> +                -Dpulse=false
> +                -Dsmartcard=false
> +                -Dusbredir=false
> +                -Ddbus=false
> +                -Dintrospection=false #FIXME

why this introspection is not working?
Maybe fixed in Meson already? Works for me.

> +  - ninja -C build
> +  - cd build && meson test

What's happen if you get an error? No details?

Frediano


More information about the Spice-devel mailing list