[Spice-devel] [linux/vd-agent v2 2/3] gitlab-ci: remove copr dependency

Frediano Ziglio fziglio at redhat.com
Fri Mar 1 10:50:45 UTC 2019


> From: Victor Toso <me at victortoso.com>
> 
> Instead of relying in copr builds, we should rely on relative branch
> in gitlab for spice dependencies such as spice-protocol.
> 
> This patch moves the dependencies to a variable and builds
> spice-protocol instead of using spice-protocol from nightly spice
> copr.
> 
> Signed-off-by: Victor Toso <victortoso at redhat.com>

Acked-by: Frediano Ziglio <fziglio at redhat.com>

> ---
>  .gitlab-ci.yml | 16 ++++++++++------
>  1 file changed, 10 insertions(+), 6 deletions(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index ad4fb80..9b894eb 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -1,12 +1,16 @@
>  image: fedora:latest
>  
> +variables:
> +  DEPS_COMMON: git libtool make python3 python3-six redhat-rpm-config
> +      bzip2 python3-pyparsing meson ninja-build gtk-doc glib2-devel
> +      gettext gettext-devel libpciaccess-devel alsa-lib-devel
> +      libXfixes-devel libX11-devel libXrandr-devel libXinerama-devel
> +      gtk3-devel dbus-devel systemd-devel
> +
>  before_script:
> -  - >
> -    dnf install 'dnf-command(copr)' git libtool make redhat-rpm-config bzip2
> -    python3 python3-six python3-pyparsing
> -    -y
> -  - dnf copr enable @spice/nightly -y
> -  - dnf builddep spice-vdagent -y
> +  - dnf install -y $DEPS_COMMON
> +  - git clone https://gitlab.freedesktop.org/spice/spice-protocol.git
> +  - (cd spice-protocol && ./autogen.sh --prefix=/usr && make install)
>  
>  make-check-distcheck:
>    script:


More information about the Spice-devel mailing list