[Spice-devel] [PATCH spice-gtk 1/4] ci: Test we can create a no dirty package

Frediano Ziglio fziglio at redhat.com
Mon May 20 07:39:44 UTC 2019


Make sure there's nothing left during build or that
during build files are not changed in the wrong way.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 .gitlab-ci.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7766539e..a6cb2cda 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,7 @@ variables:
                polkit-devel vala lz4-devel opus-devel pixman-devel
                libcacard-devel celt051-devel libphodav-devel usbutils
                usbredir-devel libusbx-devel libsoup-devel json-glib-devel
+               bzip2
 
   DEPS_MINGW: mingw64-gcc mingw64-pkg-config mingw64-pixman mingw64-openssl
               mingw64-gtk3 mingw64-json-glib mingw64-opus
@@ -39,6 +40,19 @@ fedora-autotools:
     - make -j4
     - make check
     - cd ..
+    # Run dist, check we don't have -dirty in the build
+    - git clean -xfd
+    - git submodule foreach --recursive git clean -xfd
+    - git reset --hard HEAD
+    - ./autogen.sh --disable-dependency-tracking --enable-celt051
+    - make gitignore
+    - (cd subprojects/spice-common && make gitignore)
+    - ./autogen.sh --disable-dependency-tracking --enable-celt051
+    - if grep -q 'VERSION=.*-dirty' configure; then echo 'Version is dirty!'; false; fi
+    - make -j4
+    - make dist
+    - test -e spice-gtk-*.tar.bz2
+    - test \! -e spice-gtk-*-dirty.tar.bz2
     # Run without features
     - git clean -xfd
     - git submodule foreach --recursive git clean -xfd
-- 
2.20.1



More information about the Spice-devel mailing list