[Spice-devel] [PATCH spice-streaming-agent] Update .gitlab-ci.yml

Snir Sheriber ssheribe at redhat.com
Wed Feb 27 16:00:12 UTC 2019


Do not count on copr nightly for getting the dependencies

Signed-off-by: Snir Sheriber <ssheribe at redhat.com>
---
 .gitlab-ci.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ab1b2a3..808e3ec 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,11 @@
 image: fedora:latest
 
 before_script:
-    - >
-      dnf install -y 'dnf-command(copr)' make automake autoconf autoconf-archive libtool xz gcc-c++
-      libdrm-devel libXrandr-devel
-    - dnf copr enable @spice/nightly -y
-    - dnf builddep spice-streaming-agent -y
+    - dnf install -y git make automake autoconf autoconf-archive libtool xz
+    # get dependencies from spec file
+    - dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/\bspice-protocol\b//; s/>.*//' spice-streaming-agent.spec.in`
+    - git clone ${CI_REPOSITORY_URL/spice-streaming-agent/spice-protocol}
+    - (cd spice-protocol && ./autogen.sh --prefix=/usr && make install)
 
 build_and_test:
   script:
-- 
2.19.1



More information about the Spice-devel mailing list