[gtk/gtk-3-24: 2/3] CI: Optionally run distcheck, but without actually running the tests



commit fbb3c146ea04f5edd5d69b207fbf321730597fdf
Author: Simon McVittie <smcv debian org>
Date:   Thu Jul 18 10:45:08 2019 +0100

    CI: Optionally run distcheck, but without actually running the tests
    
    This can be used to verify that we can build a release tarball using
    Autotools, without being subject to known-failing tests (which are less
    straightforward to fix). Since commit 44a2d5d6 the Meson build skips
    the failing a11y tests, but we don't have an equally easy mechanism
    to skip those on Autotools.
    
    Signed-off-by: Simon McVittie <smcv debian org>

 .gitlab-ci.yml                      | 8 ++++++++
 .gitlab-ci/test-docker-autotools.sh | 5 +++++
 2 files changed, 13 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 20d7737e44..c89a02e14d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,14 @@ fedora-autotools:
   script:
    - bash -x ./.gitlab-ci/test-docker-autotools.sh
 
+fedora-distcheck:
+  variables:
+    DO_DISTCHECK: "yes"
+  when: manual
+  stage: build
+  script:
+   - bash -x ./.gitlab-ci/test-docker-autotools.sh
+
 fedora-meson:
   stage: build
   script:
diff --git a/.gitlab-ci/test-docker-autotools.sh b/.gitlab-ci/test-docker-autotools.sh
index 2c90159081..d991842cf1 100755
--- a/.gitlab-ci/test-docker-autotools.sh
+++ b/.gitlab-ci/test-docker-autotools.sh
@@ -16,3 +16,8 @@ cd _build
     --enable-xinerama \
     --enable-gtk-doc
 make -j8
+
+if [ -n "${DO_DISTCHECK-}" ]; then
+  make -j8 check SKIP_GDKTARGET="echo Not actually running tests for now"
+  make -j8 distcheck SKIP_GDKTARGET="echo Not actually running tests for now"
+fi


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