summaryrefslogtreecommitdiff
path: root/ci/test-documentation.sh
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2017-12-31 16:02:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-03 21:29:19 (GMT)
commitb92cb86ea1494c4dfbce28b29f05632ab9f3b179 (patch)
treeb7134e6c545bce600b2f04395152ff71001759e1 /ci/test-documentation.sh
parent88e00b70330449128d3fe1a074d71ccbe236cf4a (diff)
downloadgit-b92cb86ea1494c4dfbce28b29f05632ab9f3b179.zip
git-b92cb86ea1494c4dfbce28b29f05632ab9f3b179.tar.gz
git-b92cb86ea1494c4dfbce28b29f05632ab9f3b179.tar.bz2
travis-ci: check that all build artifacts are .gitignore-d
Every once in a while our explicit .gitignore files get out of sync when our build process learns to create new artifacts, like test helper executables, but the .gitignore files are not updated accordingly. Use Travis CI to help catch such issues earlier: check that there are no untracked files at the end of any build jobs building Git (i.e. the 64 bit Clang and GCC Linux and OSX build jobs, plus the GETTEXT_POISON and 32 bit Linux build jobs) or its documentation, and fail the build job if there are any present. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/test-documentation.sh')
-rwxr-xr-xci/test-documentation.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/ci/test-documentation.sh b/ci/test-documentation.sh
index 3d62e6c..a20de9c 100755
--- a/ci/test-documentation.sh
+++ b/ci/test-documentation.sh
@@ -18,6 +18,9 @@ test -s Documentation/git.xml
test -s Documentation/git.1
grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
+rm -f stdout.log stderr.log
+check_unignored_build_artifacts
+
# Build docs with AsciiDoctor
make clean
make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
@@ -26,4 +29,7 @@ sed '/^GIT_VERSION = / d' stderr.log
test -s Documentation/git.html
grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html
+rm -f stdout.log stderr.log
+check_unignored_build_artifacts
+
save_good_tree