]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make sure the maintainer files are clean after rebuild
authorOndřej Surý <ondrej@isc.org>
Mon, 24 Aug 2020 12:40:39 +0000 (14:40 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 24 Aug 2020 12:40:39 +0000 (14:40 +0200)
When updating source files, we might forget to update pre-generated
files (generated by sphinx-build and cfg_gen) and then the extra changes
would get included in the random merge request.

This commit updates the tarball-create job to enable the maintainer
mode, then clean all maintainer files (`make maintainer-clean`) rebuild
all the file from scratch and compare the result which must be a clean
git directory.

.gitlab-ci.yml

index 60f9561efa792faaf63b5da70575a3bf09d2224c..8f36a7911b61fb86d17772c69b5e86c8f5dc8685 100644 (file)
@@ -476,8 +476,12 @@ tarball-create:
   <<: *base_image
   <<: *default_triggering_rules
   script:
-    - *configure
+    - ./configure --enable-maintainer-mode
+    - make maintainer-clean
+    - 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
     - make -j${BUILD_PARALLEL_JOBS:-1} dist V=1
   artifacts:
     paths: