[PATCH spice-gtk] ci: Test we can create a no dirty package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

It was not that easy to understand how.
Maybe we could just check configure VERSION (first grep).
Maybe would also make sense (maybe OT) to install ccache as
we do different build of the same code in the same job.

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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]