]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Generate diffs in tarball-create CI job
authorPetr Špaček <pspacek@isc.org>
Wed, 2 Mar 2022 13:00:51 +0000 (14:00 +0100)
committerPetr Špaček <pspacek@isc.org>
Thu, 10 Mar 2022 19:13:22 +0000 (20:13 +0100)
Usually it is just nits and it is much easier to debug when you actually
can see what the differences were.

.gitlab-ci.yml

index ae6f1b9a5dba6d6c2fdf77c11cd0ab989e7a7d6a..1a2f00072ee7d97c662ef84950e56bcd2d32b83a 100644 (file)
@@ -505,11 +505,13 @@ tarball-create:
     - autoreconf -fi
     - ./configure --enable-maintainer-mode
     - make -j${BUILD_PARALLEL_JOBS:-1} all V=1
-    - if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
+    - if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; git diff > diff.patch; exit 1; fi
     - make -j${BUILD_PARALLEL_JOBS:-1} dist V=1
   artifacts:
     paths:
+      - diff.patch
       - bind-*.tar.${TARBALL_EXTENSION}
+    when: always
   needs:
     - job: autoreconf
       artifacts: true